WebGL has more cpu utilization than canvas on this

  • Link to .capx file (required!):

    Open Lighting.capx on the C2 examples.

    Steps to reproduce:

    1. Test with debugger on Chrome and move the cursor around.

    2. Try both canvas2d and WebGL and observe CPU utilization.

    Observed result:

    Cpu utilization with Chrome on WebGL is much higher (20%) than canvas2d (0-1%) even with a fast cpu.

    Expected result:

    At least the same performance than canvas2D or better.

    Browsers affected:

    Chrome: yes

    Firefox: no

    Internet Explorer 11 Preview: no

    Operating system & service pack:

    Tested on:

    Windows 7 Prof. 64 bits

    Windows XP 32 bits

    Construct 2 version:

    Tested on:

    r141 beta

    r139 stable

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing as won't fix. The CPU usage is not a very scientific value - just a rough estimate, as best as can be measured from javascript which typically cannot access the real operating system measurement. In WebGL mode the engine is likely doing the same or less work, but rendering calls are included in the CPU time; in canvas2d mode the browser makes the rendering calls, so are probably not included in the CPU time. Other benchmarks show that WebGL mode is almost always faster than canvas2d mode, so I think this explanation suffices.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)