Raptisha Posted April 4, 2017 Share Posted April 4, 2017 Hello everybody! I hope you are having a great day! I have recently build a prototype for my new phaser.js game. It's a simple runner where the player has to avoid obstacles. I have tested it in multiple environments, including mobile browsers and webviews. The game refuses to run smoothly like I want it to. I have experienced lags, loosing frame rate and total unresponsiveness. So here I am, begging for your help and advice, what am I doing wrong? How can I make my game run smoothly? Is my update loop simple enough? Anything help guys! Here is the source Play it here (don't forget to switch to a mobile view) Thank you in advance! This community is awesome Link to comment Share on other sites More sharing options...
thanhtungtnt Posted April 5, 2017 Share Posted April 5, 2017 Hi Raptisha, I tested on my android (android 6.0) Xiaomi Redmi Note 4, your game run smoothly. Raptisha 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted April 5, 2017 Share Posted April 5, 2017 I think webviews have trouble when it comes to performance. Mobile browser should run this thing ok. Debug your code, maybe you do something unnecessary. Recycle objects once they leave the screen. If you want to publish as an Android app, I would recommend Crosswalk Raptisha 1 Link to comment Share on other sites More sharing options...
Recommended Posts