yigitozdemir Posted January 19, 2015 Share Posted January 19, 2015 Hi, Nowadays i am making a new game with phaser, there is lots of objects moving on the canvas, also there is a huge map. I am not using a physics system for this game. There is 2400-4000 active objects same time.I saw the is a little bit laggy, so i wondered i may wrote bad Javascript code, or a browser can not handle that amount of live objects.If you had experience with that amount of objects can you tell me where is possible error? Thank you. Best regards. Quote Link to comment Share on other sites More sharing options...
CtlAltDel Posted January 19, 2015 Share Posted January 19, 2015 This depends on a lot of things.- Spritebatching? do you use it?- Updating all objects every frame?- If so how taxing is that update? The chrome profiler for instance can give you insights in those things, find the hotspots and optimize. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.