Squalr / Squally

2D Platformer Educational Game for Teaching Game Hacking - C++/cocos2d-x
https://store.steampowered.com/app/770200/Squally/
Mozilla Public License 2.0
461 stars 58 forks source link

Possible minor performance hit in spriter ccimagefile.cpp #119

Closed zcanann closed 4 years ago

zcanann commented 5 years ago

There seems to be constant sprite creation/destruction in this file.

This is in the update loop and not the draw loop, so it's fairly negligible.

Even if it doesn't affect performance, it makes debugging dispose methods (removing event listeners, children, etc) annoying because they're constantly being fired.


Proposed solution:

zcanann commented 4 years ago

Resolved