Longwelwind/swords-and-ravens

Game sometimes does weird renderings when switching between browser tabs

gereon77 opened this issue · 1 comments

341078F9-2307-48F0-87C2-DBA0E86EA3FD

Additionally I’ve seen different house card backs in one house row already.

Things we could try:

  1. Do a full rerender when tab is activated again.
  2. Try to find locations of unnecessary render calls and reduce the render calls
  3. Upgrade to mobx v6 (requires an additional init call in every component c‘tor)
  4. Refactor IngameComponent and create smaller components like an InfluenceTracks and Supply component: https://mobx.js.org/react-optimizations.html
  5. Make sure we use unique keys when rendering arrays (like house cards)

Issue happened due to a buggy Chrome version. All is fine with the latest 105.0.5195.102