You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using plotters together with minifb to visualize real time sensor data. The combination is awesome, since both libraries are very lightweight, and it's easy to do portable, real-time UIs.
One implication is that all rendering is purely SW; plotters writes into a byte array, which minifb uses to update the frame buffer.
Unfortunately, in that process as of today, data has to be copied around multiple times for no reason other than plumbing, which costs precious CPU cycles.
Feature Request
What is the feature ?
Plotters' BitMapBackend should accept a user-provided byte buffer to render into; instead of allocating its own.
Why do you need the feature ?
What is the use case ?
See above; to reduce allocation, improve performance.
The text was updated successfully, but these errors were encountered:
Background
I am using
plotters
together with minifb to visualize real time sensor data. The combination is awesome, since both libraries are very lightweight, and it's easy to do portable, real-time UIs.One implication is that all rendering is purely SW;
plotters
writes into a byte array, whichminifb
uses to update the frame buffer.Unfortunately, in that process as of today, data has to be copied around multiple times for no reason other than plumbing, which costs precious CPU cycles.
Feature Request
Plotters'
BitMapBackend
should accept a user-provided byte buffer to render into; instead of allocating its own.See above; to reduce allocation, improve performance.
The text was updated successfully, but these errors were encountered: