joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.25k stars 232 forks source link

Target FPS/Refresh Rate #83

Closed dpuyosa closed 7 years ago

dpuyosa commented 7 years ago

For a project that Im working on the Raspberry I needed Smoothie to take less render time, so another WebGL canvas could get more FPS.

I made these changes so now I can find a balance between smoothness and performance.

this.chart = new Smooth.SmoothieChart({responsive: true, scaleSmoothing: 0.7});
this.chart.setTargetFPS(24);

It may be useful to someone else.

drewnoakes commented 7 years ago

Thanks very much. I pushed this in d88ff038947ee264c08c3aee061d90ac4c574fc5 with some minor tweaks.