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
51
S
11
G
9
Posts: 632
Reputation: 10,281

Post » Mon Mar 05, 2012 10:51 pm

i like how the whats next for html5 site just freezes my browser
Image
Spriter Dev
B
58
S
17
G
11
Posts: 2,917
Reputation: 14,161

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
51
S
11
G
9
Posts: 632
Reputation: 10,281

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
13
S
2
G
4
Posts: 408
Reputation: 3,576

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
51
S
11
G
9
Posts: 632
Reputation: 10,281

Post » Tue Mar 06, 2012 1:49 am

i hope Ashley is going to look at this :D
B
13
S
2
G
4
Posts: 408
Reputation: 3,576

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
8
G
5
Posts: 705
Reputation: 6,045

Post » Wed Mar 07, 2012 11:24 am

It freezes my browser too.

Using Firefox 10.0.2

~Sol
Moderator
B
30
S
6
G
7
Posts: 2,376
Reputation: 8,483

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
204
S
134
G
43
Posts: 17,456
Reputation: 112,007

Post » Wed Mar 07, 2012 6:55 pm

14.000 lol crazy [<:o)]
B
13
S
2
G
4
Posts: 408
Reputation: 3,576

Next

Return to Open Topic

Who is online

Users browsing this forum: psyword and 0 guests