Closed db0 closed 3 years ago
Looks like this is related somehow with the tweens. When there's a lot of cards and you try to do too many tweens at once, they start losing frames. Rest of the game performance seems fine, but it mostly affects animations into or out of piles.
it affects deck more severely than discard, so I suspect this is related to the flip_tweening
Yep, it's due to the animations. The flip animation as cards are enterring the deck just makes it worse. Don't understand why the amount of card scenes loaded makes the impact rather than how many animations are currently running. Even two simultaneous anims are choppy when there's 50+ cards in the deck, whereas the same is fine with 15 cards.
Actually scratch that, it was caused by me instancing a scripting engine twice every script executions. instancing a new class is quite a heavy task it seems.
Probably related to the still active pulse.