Why is WebGL faster than Canvas?

If both use hardware acceleration (GPU) to execute code, why is WebGL so faster than Canvas?

I mean, I want to know why the chain from code to processor is low.

What's happening? Canvas / WebGL interacts directly with drivers, and then with a graphics card?

+4
source share
1 answer

Canvas does not perform a processing layer pipeline for transitions of vertex and index sets into triangles, which then receive textures and illuminate everything in hardware, like OpenGL / WebGL ... this is the main reason for such speed differences ... Canvas containers to such formulations are executed on a processor with only the final rendering sent to the graphic equipment ... speed differences are especially noticeable when a huge number of such vertices try to synthesize / animate on Canvas and WebGL ...

, , OpenGL: Vulkan, , OpenCL/CUDA, , Canvas

+4

All Articles