By rendering to an image, instead of directly to the screen, we can cache the images, so switching back will be much faster. It also opens the way for pre-rendering images during idle time, which will greatly improve performance.
Use techniques from http://www.html5rocks.com/en/tutorials/canvas/performance/
By rendering to an image, instead of directly to the screen, we can cache the images, so switching back will be much faster. It also opens the way for pre-rendering images during idle time, which will greatly improve performance.
Use techniques from http://www.html5rocks.com/en/tutorials/canvas/performance/