WebGL

Get help using Construct 2

Post » Sat Jan 07, 2012 6:55 pm

Hi, A few questions about WebGL?

1, Do I need to check it "On"

2, What does it do?

3, Will it benefit my games?

4, Will it work on mobile devices if I export them through phonegap?

Thanks.
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sat Jan 07, 2012 6:58 pm

1. It's "On" by default, but falls back to 2D canvas if there is no webgl support

2. Enables WebGL renderer, which uses hardware acceleration and is much, much faster

3. Yes. More FPS!

4. If they have webgl support.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Jan 07, 2012 7:16 pm

@Mipey, Thanks for the reply.

Will research if the iphone natively supports webGL, Is it a service only available to web browsers? Which would make sense hense the Web part of WebGL
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sat Jan 07, 2012 7:21 pm

iOS supports webGL only for iAds for the moment...
I don't really understand the Apple politics about this, but hopefully it will be supported soon.septeven2012-01-07 21:32:03
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sat Jan 07, 2012 7:23 pm

Well i guess ads in game can drop the frame rate slightly, So making them WebGL would help that. But still why put it on that but nothing else? Not a smart move by apple :)
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Jan 08, 2012 12:11 am

If the browser does not use webgl, it will automatically fall back to the canvas renderer. therefore there is no reason to not use it.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jan 08, 2012 6:40 am

You can read more about WebGL in the manual Technology section and this blog post on HTML5 performance. Enabling WebGL can help your game run 2-3x faster so it's definitely a good idea to have it on.

No mobile browsers currently support WebGL which is a shame. So it won't work with PhoneGap. As for Apple, they cite security concerns as a reason not to support WebGL, but really I think it's because it could allow HTML5 apps to compete with native apps in their app store, which they make money from.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests