News for hackers. Stuff that matters.
Re:Smoothie Charts by chime on Monday August 23, 2010 @08:38AM (#1626587)
I 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 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 by pedrocr on Monday August 23, 2010 @09:14AM (#1626661)
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

Re:Smoothie Charts by audidude on Monday August 23, 2010 @03:45PM (#1627789)
I actually made it faster using the drawable as a circular buffer, details here http://audidude.com/?p=470

Quick cpu comparison http://x.dronelabs.com/chris/dropbox/smoothie.png

Re:Smoothie Charts by Etiko on Monday August 23, 2010 @07:38AM (#1626482)
No love for Firefox? :(
Re:Smoothie Charts by maushu on Monday August 23, 2010 @08:58AM (#1626633)
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 by thecircusb0y on Monday August 23, 2010 @09:29AM (#1626694)
I've been using Chrome for the last 2 months, and today was told Firefox wasn't working with a wordpress blog I have to administer... since when does firefox have problems viewing things? I thought that was IE's job.
Re:Smoothie Charts by maushu on Tuesday August 24, 2010 @06:37AM (#1629423)
Tell me about it. At work I need to check Firefox too besides IE to see if the app works correctly. Chrome rarely has any problem.
Re:Smoothie Charts by aw3c2 on Monday August 23, 2010 @10:21AM (#1626818)
Eats 100% CPU. Definitely needs a frame limiter (or whatever else is needed).
Re:Smoothie Charts by smokinn on Monday August 23, 2010 @10:57AM (#1626926)
Is that in Safari?

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 by irfn on Tuesday August 24, 2010 @09:01AM (#1629617)
On a Mac, Safari is at around 50% cpu and chrome is 99%
Re:Smoothie Charts by aw3c2 on Tuesday August 24, 2010 @05:13AM (#1629346)
Opera on Linux.
Re:Smoothie Charts by maggit on Monday August 23, 2010 @12:55PM (#1627257)
It's also working near perfectly in Opera 10.61. (There is a bug initially, when the lines should start in the middle of the chart, rather than on the left)
Re:Smoothie Charts by nphase on Monday August 23, 2010 @04:28PM (#1627950)
No love for the iPad either. was looking forward to making a streaming dashboard with this