javascript - Why is my requestAnimFrame still slow? -
I have followed the best practices for creating a simple animation by requestAnimFrame:
Unfortunately the animation shows this example It's been too long (on Chrome, Firefox and IE).
Explanation of the source code:
What is the solution, displaying simple animation in html5 without any slow motion? Use double buffer techniques for complex animations to avoid slow tasks such as saving, restoring and so on.
Good article
"requestAnimFrame" will not boost your performance, because in this situation the browser decides that you have to present your code for a while, and not you My experience shows that it is better to set timers for the required FPS, using the PhoneGap for Android I had a bad experience while experiencing the game. I tried various techniques and was best to use the best two canvas, to avoid using the paths and to avoid slower changes.
Comments
Post a Comment