3 ms·
Why is the framerate poor even when I shrink the viewing area down 10x10? It seems to have the same stutter as the original large view. Is it because it's doing
by JungleGymSam 14y ago
Why is the framerate poor even when I shrink the viewing area down 10x10? It seems to have the same stutter as the original large view. Is it because it's doing the same calculations but just showing fewer pixels?
- petercooper 14y agoYes. It's the calculations and direct pixel setting that's slow, not the actual "rendering" of the canvas (which is accelerated like crazy in most browsers now).
- deleted 14y ago[deleted]
- jQueryIsAwesome 14y agoYep, the hard part is the calculations required for every pixel being displayed. It does get better framerate changing the variables: http://jsfiddle.net/wATAp/ http://jsfiddle.net/wATAp/
- kevingadd 14y agoPart of the reason it's slow is that it doesn't use typed arrays. This may be much faster for you: http://jsfiddle.net/uzMPU/1573/ http://jsfiddle.net/uzMPU/1573/
- voltagex_ 14y agoYes, at least 2x here. I'll pull up Chrome's FPS display later.