Smoothie Charts
smoothiecharts.org
Smoothie Charts
1–10 of 14 posts
Re: Smoothie Charts
#2Re: Smoothie Charts
#3One thing he can try to get speed improvements is to absolutely position a double-width canvas tag in an iframe and move the entire canvas tag one pixel to left on each refresh. Then he can just paint the new data on the right-most visible pixel. One canvas has moved -width px, just do a .save() / .restore() and reset it to left: 0px.
I'm not certain if it will help for sure but I have an inkling it might.
Re: Smoothie Charts
#4No love for Firefox? :(
Re: Smoothie Charts
#5I see that he is redrawing the whole chart on each refresh: http://github.com/joewalnes/smoothie/raw/master/smoothie.js - .save() and .restore() One thing he can try to get speed improvements is to absolutely position a double-width canvas tag in an iframe and move the entire canvas tag one pixel to left on each refresh. Then he can just paint the new data on the right-most visible pixel. One canvas has moved -width…
the result is in github:
Re: Smoothie Charts
#6No love for Firefox? :(
I wonder why it shouldn't work on Firefox, the only bottleneck I can see is the canvas. (Websockets can be faked multiple ways.)
Re: Smoothie Charts
#7Re: Smoothie Charts
#8Eats 100% CPU. Definitely needs a frame limiter (or whatever else is needed).
I'm running it in chrome (on windows) on a not-great machine and it's taking 23-25% of one of the two cores.
Re: Smoothie Charts
#9Re: Smoothie Charts
#10I see that he is redrawing the whole chart on each refresh: http://github.com/joewalnes/smoothie/raw/master/smoothie.js - .save() and .restore() One thing he can try to get speed improvements is to absolutely position a double-width canvas tag in an iframe and move the entire canvas tag one pixel to left on each refresh. Then he can just paint the new data on the right-most visible pixel. One canvas has moved -width…
There was recently a series of posts about doing what you described for GTK/X: http://audidude.com/?p=404 the result is in github: http://github.com/chergert/uber-graph
Quick cpu comparison http://x.dronelabs.com/chris/dropbox/smoothie.png