I'm currently developping a simple 2D canvas video game and while I was testing performance, I noticed that there is a very disappointing frame rate on Androïd Chrome (about 45fps).
About one out of two frame breaks. And I cannot see what in my call stack is creating the performance issue. As you can see on the performance capture, the task lasts less than 4ms (which is under the 16ms of refreshing)
Zoomed :
And here is the sample code of the game loop... with almost nothing in it (I removed all the game stuff) :
Game.loop = function(){
ctx.setTransform(1,0,0,1,0,0);
ctx.clearRect(0, 0, canvas.width, canvas.height);
requestAnimationFrame(Game.loop);
}