Flash Outperforms HTML5 on Mobile Devices

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

theeedude

Lifer
Feb 5, 2006
35,787
6,197
126
And the post above mine the dude got much better scores on another variation of this test which was straight html5 on his iPhone 4. Can you explain on how similar, straight html5 he got twice as many FPS? I looked at the code and nothing stands out as odd. It's possible in both sets of codes there's a variable that for whatever reason helps or doesn't help a certain browser. That's the way HTML & CSS works, so I don't see why it wouldn't be the same in HTML5.

I don't know a lick of html5 but for all I know changing ctx.fillRect (0, 500-32, 500, 32); to ctx.fillRect (0, 500-32, 500, 42); could be something that triggers the iPhones browser to slow down 50%. You're making the assumption because the code looks normal that it has to be the iPhone and can't possibly be something in the code. I know CSS and in some code a simple change of 1 value in 1 line of code can make a page that displayed perfectly in IE go into FUBAR mode.

If anything OP's post + what MrX8503 said above me proves to me one thing, different browsers render HTML5 differently, so like CSS a simple tweak in code can break it on one browser or make it run better.

Android seems more resilient to variations of HTML5 code than iOS then. Not every HTML5 page is going to be scrutinized and optimized to death like this app.
 

Stang289

Senior member
Oct 7, 2000
204
0
0
Android seems more resilient to variations of HTML5 code than iOS then. Not every HTML5 page is going to be scrutinized and optimized to death like this app.

What exactly are you basing this on? Two bouncing ball pages?