I am working on D3 canvas graphics; I want to increase the frame rate, for this I am going to upload the animation-related code to the GPU from the CPU. The following articles on this subject can be found on the Internet:
Upload computing to your GPU
Using GPU acceleration in a 2D canvas
Unleash the power of HTML5 Canvas hardware acceleration
But I could not apply anything, moreover, I do not know how to implement and where to implement this code.
Any other suggestions for unloading the load on the GPU from the CPU are also welcome.
There is already an implementation attempt called pathGL.
- : http://pathgl.com/examples/physics.html
Github : https://github.com/adnan-wahab/pathgl