What's coming for HTML5

Chat about anything not covered in these forums, but keep it civil!

Post » Mon Mar 05, 2012 10:28 pm

Some HTML5 slides on the bleeding edge of HTML5 : Here

Very motivational :D . Some of them are already here in alpha like gamepad, and others are going to make HTML5 gaming and of course, C2 much better! Examples are, mouse locking , much better canvas pixel manipulation performance (Canvas plugin much faster), even better sound support, better input etc. Great times to come. Only thing missing is getting all of these on mobile too :)
B
52
S
12
G
10
Posts: 632
Reputation: 11,436

Post » Mon Mar 05, 2012 10:51 pm

i like how the whats next for html5 site just freezes my browser
Spriter Dev
B
75
S
19
G
11
Posts: 3,135
Reputation: 15,207

Post » Tue Mar 06, 2012 12:24 am

What browser are you using ? I'm using Chrome 17, works ok here. If you're using the same then i'm lucky i guess. Should work on Chrome and Firefox i think.
B
52
S
12
G
10
Posts: 632
Reputation: 11,436

Post » Tue Mar 06, 2012 12:28 am

I saw THIS on youtube. it is possible with scirra??? because scirra use html5 http://www.youtube.com/watch?v=lP0guzk1nS4
B
21
S
5
G
4
Posts: 881
Reputation: 5,061

Post » Tue Mar 06, 2012 1:21 am

The guy used a clever optimization. Since he didn't post the code i can't tell exactly what he used. But from what i understood it's a double buffer technique with two canvas and copying only what's visible each time from one to other.
B
52
S
12
G
10
Posts: 632
Reputation: 11,436

Post » Tue Mar 06, 2012 1:49 am

i hope Ashley is going to look at this :D
B
21
S
5
G
4
Posts: 881
Reputation: 5,061

Post » Wed Mar 07, 2012 8:27 am

From the comments of the video : he used a clever trick, nothing "HTML" specific. As Kiyoshi said, you need 2 canvases. The slow part with Canvas is drawImage(). So you need to move the viewport, know how much you moved by using two variables, and only draw new tiles in the white row or columns that has just been created. So the number of redraw is only linear, not exponential.
B
33
S
9
G
5
Posts: 709
Reputation: 6,204

Post » Wed Mar 07, 2012 11:24 am

It freezes my browser too.

Using Firefox 10.0.2

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/4vsI2p0o
Moderator
B
30
S
7
G
7
Posts: 2,376
Reputation: 8,633

Post » Wed Mar 07, 2012 4:33 pm

@imothep85, Construct 2 supports WebGL and my last benchmark can get 14000 sprites on-screen at 30 fps. So it should be able to do 7000 at 60 fps already.
Scirra Founder
B
260
S
158
G
58
Posts: 20,776
Reputation: 147,347

Post » Wed Mar 07, 2012 6:55 pm

14.000 lol crazy [<:o)]
B
21
S
5
G
4
Posts: 881
Reputation: 5,061

Next

Return to Open Topic

Who is online

Users browsing this forum: Lasmelan, Netuno, yago13games and 1 guest