kevincentius / customino-3

0 stars 0 forks source link

Performance issues #95

Closed kevincentius closed 2 years ago

kevincentius commented 2 years ago

9 draw call per player. It looks like minos in a player are batched but never between different players. With 100 PlayerDIsplays therefore there was like 901 calls.

Removing all graphics from the scene reduced render time by about 10% at first but when there are more minos on the board it looks like the sheer amount of mino sprites are simply the giant bottleneck.

kevincentius commented 2 years ago

WTF pixi objects must be destroy()-ed? How did the game run smooth at all so far :)

I guess go search for all places where new pixi objects are created and make the destroy for it in the appropriate place

Extends to be destroyed:

kevincentius commented 2 years ago

Hopefully can improve performance through local settings overrides player rules, e.g. board size & remote player sounds.

kevincentius commented 2 years ago

We should close this issue after final testing (kami?). Performance is something we have to keep in mind all the time anyways. The concrete solutions here have been implemented.