1 decade ago by Bradley
There's a performance hiccup that occurs the first time an instance of a class with a large sprite sheet renders to the canvas. Even if an instance has been spawned to an off-screen position, this still occurs the moment the first instance moves to an on-screen position and is drawn.
This was occurring at a high motion moment in the game where I didn't want any hiccups, so I made an instance of several different classes render on-screen, behind the game intro screen once, then they are removed. This works, but seems a little funky. Is there an easier way?
This was occurring at a high motion moment in the game where I didn't want any hiccups, so I made an instance of several different classes render on-screen, behind the game intro screen once, then they are removed. This works, but seems a little funky. Is there an easier way?