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?
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.
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 <img src="smileys/smiley17.gif" border="0" align="middle" />
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.
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 :)
Develop games in your browser. Powerful, performant & highly capable.
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.
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.