1. Are you ready for the Galaxy S20? Here is everything we know so far!

Very poor Browser performance for HTML5 canvas on Memo Pad 10

Discussion in 'Android Help' started by Android Question, Mar 4, 2016.

  1. Android Question

    Thread Starter

    I bought a new tablet (Asus Memo Pad 10, Android 4.2). One of the first things I did was try to run a small HTML5 canvas game that i wrote. I saw that the frame rate was very bad (3 fps), which is very weird, because my mother has the same talet and on hers it runs with 30 fps. I also got another tablet which is about the same speed and this one also runs at ~30 fps, same for my phone, which should also be pretty much the same performance, and also runf fine on that. This happens for all browsers, i tried chrome, FF and Opera, all have 3 or 4 fps. Apart from that, the tablet seems to be fine, i tried other games, for example Heartstone, which runs fine, also I ran a benchmark (pcmark) which gave me an everage result for this tablet. Im really wondering why the performance for my game is so bad. All it does is some basic 2d canvas rendering. No js errors in console. I dont use any libs / frameworks. I use requestAnimationFrame() for rendering. When i use setTimeout() or setInterval() instead, the game suddenly runs at much higher fps, but fails to actually render at that speed, so it still actually looks like 3 fps or so, while the loop runs 50 or 60 times a sec. This also happens when i put the "setTimeout" call at the end of the loop. Another thing to note is: when i check performance with chrome dev tools, it looks like the cpu is like 90% idle, which somehow would explain why the game runs so slow.

    Anyone has an idea why this is happening and what i could do about it ?


Share This Page