New HTML5 demo / performance test

Discussion and feedback on Construct 2

Post » Wed Jun 29, 2011 2:36 pm

[QUOTE=Ashley] Right now I think performance is mostly whether or not the browser has hardware acceleration, rather than your hardware. I think right now Chrome is still using a software renderer, so it will always be slow - they're working on hardware acceleration AFAIK.[/QUOTE]

Not sure if that's true, since Chrome usually performs quite well with HTML5 stuff. As I mentioned in my earlier post it did beat Ffox in a little test I made, which didn't involve fullscreen or scrolling though, it was also a completely passive benchmark. It creates a lot of objects while constantly rotating them and changing their opacity.

Also when you go to the address about:flags in Chrome you can see an option 'GPU Accelerated Canvas 2D' which should be activated by default. So if I'm not completely mistaken, Chrome does indeed do hardware acceleration already.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Jun 29, 2011 2:49 pm

[QUOTE=PixelRebirth]Not sure if that's true, since Chrome usually performs quite well with HTML5 stuff. As I mentioned in my earlier post it did beat Ffox in a little test I made[/quote]
Did you test Firefox 5? FF5 added decent hardware acceleration, FF4 didn't have that.

[quote]Also when you go to the address about:flags in Chrome you can see an option 'GPU Accelerated Canvas 2D' which should be activated by default.[/QUOTE]
It's disabled by default in Chrome 12 - at least on my machine. If you enable it you should get decent performance, but judging by the framerates it's not enabled by default. I'm hoping they do turn it on in a future build soon though!

It's also possible browsers have incomplete acceleration - i.e. it uses hardware acceleration, unless you use some particular feature (e.g. the lighting in the demo), in which case it falls back to slow software mode.

Chrome does have one of the best software renderers though - in software mode it's far faster than Firefox in software mode, which would explain your result. Assuming only FF5 and IE9 have default-enabled hardware acceleration, they should both beat Chrome right now.Ashley2011-06-29 14:51:43
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Jun 29, 2011 3:10 pm

[Quote=Ashley]Did you test Firefox 5? FF5 added decent hardware acceleration, FF4 didn't have that.[/quote]

The initial test was Ffox4 against Chrome 11, but it appears to be the same picture with Ffox5 against Chrome 12. Ffox5 may have come a little closer.

If you test my example Chrome beats out Ffox still, while with the Ghost Shooter example of this thread, Chrome loses pretty harshly. Weird. And yes, for my testing the 2D Canvas Acceleration is always active in Chrome.

IE9 seems to be dominant all the time btw. Microsoft did a great job there with the hardware acceleration and their javascript engine I imagine.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Jun 29, 2011 3:29 pm

Its odd, On windows xp, Chrome got ~22 fps, FF5 got ~10.

It was odd indeed and chrome hardware accel is off. Might be my computer lol.
B
2
S
1
G
3
Posts: 49
Reputation: 1,098

Post » Wed Jun 29, 2011 3:36 pm

If your drivers are out of date FF5 might disable hardware acceleration. It's difficult to tell what's going on sometimes!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Jun 29, 2011 4:36 pm

Getting between 60-64fps in FF5. Occasionally it will spike to around 55 or so, but not often.

Dual core, Win7x64, 2GB ram, 9500GT

Overall I'm pretty impressed. It wasn't that long ago that I couldn't even run a small embedded HTML5 game in my browser of choice, and now I'm getting good performance at fullscreen deadeye2011-06-29 16:37:13
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Jun 29, 2011 4:55 pm

i'm wondering about performance of more complicated games in HTML5. Not only more objects, but more effects, physics, particles and things like that.

I would love to convert my game to HTML5 to see how it can handle all of that effects and particles... but need few more C2 updates
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Wed Jun 29, 2011 6:20 pm

Firefox 5 at 8 FPS
Fullscreen drops to 5 FPS

GeForce 8400GS 512MB RAM
XP
2GB RAM midnight2011-06-29 18:21:36
B
13
S
3
G
5
Posts: 286
Reputation: 3,193

Post » Thu Jun 30, 2011 1:07 pm

Firefox 5 - 63fps Fullscreen

I don't have IE9 installed

Safari fails and just freezes

------------------------------

Intel Q9300
4Gb OCZ DDR2 1066
2 x 1024Mb GeForce GTX280 (SLI)

~SolSoldjahBoy2011-06-30 13:07:42
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Jun 30, 2011 2:42 pm

18 fps

safari 5.05 latest i think.

mac osx 10.6.8,
duel 3.2 processor, 4 gigs ram, ATI Radeon HD 5670 512mb

B
37
S
19
G
18
Posts: 613
Reputation: 10,231

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests