I hope this is not too open.
I am wondering if there is a way (more convenient for the battery) to do this -
I have a small HTML 5 game drawn on canvas (say 500x500). I have some objects whose positions I update every 50 ms or so. My current implementation re-draws the entire canvas every 50 ms. I canβt imagine that itβs very convenient for working on mobile platforms.
Is there a better way to do this? This should be a big picture with games.
EDIT:
upon request, here are a few more updates:
Currently, objects are geometric primitives drawn through arcs and lines. I don't mind creating these small png / jpg / gif files instead of helping. This is small graphics - just 15x15 or so.
As the game progresses, more and more screens change at a time. However, at the beginning, the screen changes relatively slowly (objects randomly moved several pixels every 50 ms).
source share