Sign in to follow this  

How to diagnose and track down WebGL performance issues

Recommended Posts

I'm working on a relatively complex project using Phaser 3, and recently I have started to experience bursts of intense lag. I suspect this is a WebGL issue (not specific to Phaser). However, I'm very unfamiliar with WebGL itself, and I'm not sure that I'm approaching the problem the right way. I have performed profiling with Chrome's devtools but the stack traces are not extremely informative to me and I didn't get out much of it.

Therefore, I'd like to know if anyone could recommend specific ways to approach performance issues in WebGL, to help pinpointing the cause. Maybe to identify specific textures that cause problem, if this makes any sense at all, or any other useful pieces of information.

To be clear, I'm not asking for you to solve my problem, that's why I'm providing so little info. For now I'm interested in you guys just letting me know about your best practice and experience in general for that kind of issues, so I can improve at this and solve it myself.

Share this post

Link to post
Share on other sites

What happens if you try running the game in Canvas2D mode instead of WebGL? If the problem changes or goes away then you confirmed it is to do with webgl rendering. If it stays then you know you were barking up the wrong tree

Share this post

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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.