How much faster is it to render just the parts of the canvas that changed, compared to the whole thing?
Rendering a white dot that moves across a black background.
<canvas id="c" width="640" height="480">
var canvas = document.getElementById('c');
var context = canvas.getContext('2d');
var HEIGHT = 100;
Preparation code output
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
re-render whole scene
only render differences
Compare results of other browsers
You can edit these tests or add even more tests to this page by appending
/edit to the URL. Here’s a list of current revisions for this page: