113 points · by DanielH · 16y ago · 13 comments
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.
the result is in github:
Quick cpu comparison http://x.dronelabs.com/chris/dropbox/smoothie.png