SpriteBatch optimalizálás

Tesztelésre
@KonajuGames The GC is only one component in the optimization of a managed runtime. Any temporary object instantiation causes problems in the performance of a managed runtime because it requires the use of the memory manager in the runtime. Being stack allocated is even worse because now you run the risk of polluting your stack with unnecessary allocations. Every stack allocation is an extra instruction to increment the stack pointer and a test for the stack memory overflow condition. 

If you don't want to believe me, then go find a SmallTalk developer and ask them. If you are still not satisfied, then go ask an ADA developer. 

The SpriteBatch classes are key classes for the performance of any 2D game. Every little change in these classes can have a huge impact on the performance of a 2D game.