by hertog · 15y ago · 0 comments
However, although the fps is higher, the animation looks worse. Is that because the 'render cycle' is not completed using this technique?
But with zeroTimeout, the movement is happening so fast that the snapshot copy is behind. The browser might be only updating the video every 20ms at the fastest, while the block is moving several pixels every few ms.
But be assured the render of the block is completely happening and then being erased. It's a proper render. If it wasn't, you'd get a permanent "smear" of the results in the browser.
iphone 4.3 http://www.blaze.io/mobile-report/video/110315_1413/110315_1... (mp4)
android 2.3 http://www.blaze.io/mobile-report/video/110315_1414/110315_1... (mp4)