I created a game using only sine behaviour for every 'hero' and 'enemy' family. But when user not playing it (while hero and enemy moving with sine), about 1 minutes, the frame rate is drop fast.
How to solve this? Thanks.
Develop games in your browser. Powerful, performant & highly capable.
Doesn't sound right. Sine can add up if you spam it where you don't need it, but it shouldn't progressively lag down the game.
Apparently, I was activating a group but never deactivate it. So it keeps running and create same object in same position overtime. I just deactivate and fps never drop anymore. How silly