awadh Posted January 25, 2017 Share Posted January 25, 2017 I have developed so many games in Phaser but it is lagging and performance is too bad. I am really having no way to improve the performance. http://slopho.southindia.cloudapp.azure.com/static/games/homerun/index.html Thanks, Awadh Quote Link to comment Share on other sites More sharing options...
Fatalist Posted January 25, 2017 Share Posted January 25, 2017 Scale down your textures, use a texture atlas. Quote Link to comment Share on other sites More sharing options...
diyo games Posted February 7, 2017 Share Posted February 7, 2017 Do not change the data type of variables, do not store different types of variables in an array, use object pool (do not create "new" objects in the gameplay) Do not add or remove elements of an array, use bitwise operations, do not resize the images inside the canvas, try to minimize or remove antialiasing to the images, that x now Quote Link to comment Share on other sites More sharing options...
Firenibbler Posted March 24, 2017 Share Posted March 24, 2017 Use pre-cashed image sizes. Re-scaling images is a huge performance hit. Check out this article for more details: http://www.firenibbler.com/2016/05/best-performance-tips-and-tricks-for-your-html5-canvas-games/ 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.