HTML5, everything is slow? Or just graphics?

Discussion and feedback on Construct 2

Post » Fri Jun 24, 2011 4:44 pm

haven't messed with c2 much yet. Curious though, about html5 being much slower than exe's as everyone says. Is that mainly the case when graphics are involved?
Or if I had some cpu intensive numbercrunching going on that would be much slower as well? If it matters, the number crunching would be going on in a plugin, not in events
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Fri Jun 24, 2011 6:26 pm

Try it in IE9. Rock solid 60fps pretty much no matter what's going on. Most browsers are compiling Javascript to machine code and can reach speeds close to C++. Browsers are also heading towards hardware-accelerated canvases - IE9 is the first to do it really well, and uses the GPU for all rendering. It doesn't really matter what programming language you use to send draw commands to the GPU (whether its C++ or Javascript) - it's always going to be blazingly fast so long as you offload all the work to the graphics card.

I think Firefox 5 might now be a lot better too, but I'm on an old laptop and the troubleshooting page says it's blacklisted my driver! :P Give it a shot, it's supposed to be using hardware-accelerated Direct2D (the 2D version of DirectX for Vista and up).

So shortly nothing will be slow in HTML5 - people just get the impression from old browsers which aren't optimised yet.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jun 24, 2011 7:01 pm

Irrelevant - problem found.
B
13
S
6
G
6
Posts: 144
Reputation: 3,106

Post » Fri Jun 24, 2011 7:11 pm

IE9's canvas performance isn't quite as good as a native EXE's, but I thought it would be better than that. Can you send me both the CC and C2 projects you tested with and I'll investigate? I'm still confident good performance is possible in HTML5.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Jan 26, 2012 12:52 pm

Hi, Ashley, i'm creating(actually converting) a simple game that i have to html5 with Construct2 to see how it gos, and i was wondering if u guys in scirra team can tell if there is any best practice guide concerning performance, or if theres is some things i can do to improve performance in my game using the engine(any possible upgrade related for a close future? :))

i'd appreciate any possible help. By the way, the events sheet its a awesome visual creator. \o/ Congrats

bye
B
3
Posts: 7
Reputation: 389

Post » Thu Jan 26, 2012 2:16 pm

This is an old thread, FYI browsers have become much faster since it was posted.

There are some performance tips in the manual:
http://www.scirra.com/manual/134/performance-tips
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Jan 26, 2012 3:36 pm

Thanks :)
B
3
Posts: 7
Reputation: 389


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests