plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.83k stars 277 forks source link

[Feature reuqest] GPU Rendering Support - Not only WebGL, but also OpenGL/OpenCL/CUDA ? #25

Open serzhiio opened 5 years ago

serzhiio commented 5 years ago

Any info on using WASM+WebGL+Plotters? Is it possible?

38 commented 5 years ago

Hi there, there's no built-in backend for WebGL currently. In theory you can implement your own backend. I am happy to make Plotters more useful to people, so could you please share more details about why and how you need this? And hopefully we will have a nice WebGL support in the future :)

Thanks!

serzhiio commented 5 years ago

I'm writing trading bots/algos and now build new web UI based fully on WASM. And i want fastest possible chart which can draw 50k+ points with reasonable FPS. I used to use D3FC library with canvas but i wasnt able to reach realtime perfomance.

If you interested you can look at this lib using WebGL backend: d3fc-webgl

onsails commented 4 years ago

also for OpenGL: https://github.com/phaazon/luminance-rs

0b01 commented 4 years ago

I was able to achieve real time performance with the highly optimized bitmap backend and pass the RGB into your UI framework of choice.