danchitnis / webgl-plot

A high-Performance real-time 2D plotting library based on native WebGL
https://danchitnis.github.io/webgl-plot-examples/vanilla/
MIT License
576 stars 33 forks source link

Improved performance addLine, suggestion #2 #53

Closed lootic closed 4 years ago

lootic commented 4 years ago

Initializing the shaders for the lines in WebglBaseLine to better separate responsibilities and reduce the time it takes for lines to render.

danchitnis commented 4 years ago

It is passing all the tests 👍

danchitnis commented 4 years ago

Thanks for the changes. I have created a new release and pushed to npm v0.5.0. I have started the process of cleaning up the vanilla examples by removing old umd modules and replacing them with esm and Rollup for a cleaner understanding of the code especially for debugging and benchmarking.