Jump to content

Profiling Phaser - GLES2ReadPixels


pyre
 Share

Recommended Posts

Hi, I've been profiling my game using the chrome tracing tool and funnily the big slowdown seems to be GLES2ReadPixels. I ran a basic phaser animation example and experienced the same behaviour.

Why is this? I thought the readpixels command was generally thought of as quite a slow call (Especially if you cover your entire screen...) and only used for taking screenshots, etc?

Image: https://image.prntscr.com/image/Coz8zvP3Rtu4Qk26V58cHQ.png

Coz8zvP3Rtu4Qk26V58cHQ.png

Link to comment
Share on other sites

On 11/2/2017 at 6:13 AM, samme said:

Well, who knows what Chrome is doing with ReadPixels. :D Try the DevTools Performance tab instead.

I went for the tracing tool because the DevTools performance tab gives no info about what's causing the GPU usage to be so high.

nAjWP4_SRoe3giPKkNbuyA.png

The firefox canvas debugger is the only one that seems to give helpful information (I can see the number of draw calls and what each one of them does).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...