Partial Re-rendering
JavaScript performance comparison
Info
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.
Preparation code
<canvas id="c" width="640" height="480"></canvas>
<script>
var canvas = document.getElementById('c');
var context = canvas.getContext('2d');
var HEIGHT = 100;
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
re-render whole scene |
|
pending… |
only render differences |
|
pending… |
Compare results of other browsers
Revisions
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:
- Revision 1: published by Boris and last updated
- Revision 2: published by Boris
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published
- Revision 13: published
0 comments