Jump to content

Ways to debug low FPS of my game


Recommended Posts

My Phaser 3 game runs at around 48-55 FPS on mobile browsers but runs at around 58-60 FPS on my Macbook. It's a simple casual car game.

I don't know how to debug this further. I tried profiling using Chrome's remote debugger but when I do USB debugging the frame rate falls to 17 FPS due to the overhead. That's not feasible.

Given that the game runs respectably fast on my laptop but not on my mobile phone's browser, how do I solve this? My mobile device is rather new and I would definitely have wanted to it run seamlessly on my phone.

Thanks

Link to post
Share on other sites

That's pretty normal. Even a top spec mobile is going to struggle against an average PC.

I mainly use FF, but Chrome definitely has a performance tool. Just run it on desktop, see what methods top your flame chart / call tree, and optimise those. In FF it gives you a handy percentage total performance cost for each function over the selected period. They might not be the exact issue with your mobile performance but they might be a good indicator.

Link to post
Share on other sites

You'll need to look at a wider area than that, and make sure you're covering the part of the game that runs slowly in your mobile browser.

Then expand some of those functions (see the little grey arrow next to Gecko), looks at what methods are being called, and then look at your code to see why it might be running slowly.

Optimisation is an open ended problem. Without seeing your code it is quite difficult to offer any advice.

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...