joewalnes / smoothie

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

Smoothie charts render differently if I open another tab or scroll up/down #118

Closed francobottero closed 4 years ago

francobottero commented 4 years ago

I've been experiencing this bug where the chart renders a lot more points when I open a new tab, or when I scroll up/down very quickly. Any thoughts of what could be ?

I upload some screenshots so you can see more clearly :

Captura de Pantalla 2019-11-28 a la(s) 13 15 53

Captura de Pantalla 2019-11-28 a la(s) 13 16 42

HolgerJeromin commented 4 years ago

This is probably a problem with power optimisation from the browser:

https://developers.google.com/web/updates/2017/03/background_tabs

HolgerJeromin commented 4 years ago

Fast scrolling does not allow enough cpu cycle to fullfill the settimeout/requestAnimationFrame timers

francobottero commented 4 years ago

Thank you for your help ! Im glad to say I fixed the issue by limiting the FPS ! Now my charts are rendered correctly !