2 ms·
I guess my understanding of an HTML canvas is that it takes less work to "translate these 1000 objects 5 pixels left" than "draw these 1000 objects" e.g. mozil
by elif 7y ago
I guess my understanding of an HTML canvas is that it takes less work to "translate these 1000 objects 5 pixels left" than "draw these 1000 objects"
e.g. mozilla's tips for canvas performance state: "Avoid unnecessary canvas state changes."
And:
"Render screen differences only, not the whole new state."
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/...