News for hackers. Stuff that matters.
Re:Welcome to Mozilla Labs Gaming by corysama on Tuesday September 07, 2010 @08:24PM (#1670620)
WebGL is a nice compromise. But, coming from a console game development background, I won't be happy until both Mozilla and Safari adopt NativeClient. C++ with Posix and OpenGL can do amazing things on the iPhone. On even a netbook it could be 10 years ahead of the best HTML5 demos.

For example: WebGL can run Quake2, but NaCl could easily handle Epic's "Project Sword" http://www.youtube.com/watch?v=x2ncmwgJzqw

Re:Welcome to Mozilla Labs Gaming by modeless on Wednesday September 08, 2010 @04:56AM (#1671386)
I think you're underestimating WebGL. The Quake 2 demo was a port from C to Java, compiled to Javascript, of a codebase that was originally designed in the heyday of software rendering. It's surprising that it works at all, and shouldn't be seen as a demonstration of the full capabilities of WebGL.

That "Project Sword" demo is built with OpenGL ES 2.0, which is the same API WebGL is based on. All the GPU-based effects will work exactly the same in WebGL. The only part WebGL might have trouble with is the CPU-driven particle systems and cloth simulation, but even there you might be surprised at what V8, Nitro, and JaegerMonkey can achieve these days. And if the performance still doesn't satisfy you, GPGPU is now an option.

Re:Welcome to Mozilla Labs Gaming by chc on Tuesday September 07, 2010 @09:50PM (#1670741)
NaCl is cool technology, but it won't be ready for wide adoption until it's divorced from x86.
Re:Welcome to Mozilla Labs Gaming by patrickaljord on Wednesday September 08, 2010 @01:06AM (#1671096)
From http://code.google.com/p/nativeclient/:

"Some ARM and x86-64 support is implemented in the source base, and we hope to make it available for application developers later this year."

The port to ARM and x86-64 are pretty much done by the way. Also, see:

http://code.google.com/p/nacl-llvm-branches/

Re:Welcome to Mozilla Labs Gaming by kripken on Wednesday September 08, 2010 @12:03AM (#1670985)
Very true. Since it has been x86 specific from the start, that will be hard to do. PNaCl is trying to get there, by making LLVM architecture-agnostic, but it's an experiment at this point. And even if it does end up working some day, it may or may not get into other web browsers than Chrome, not to mention iPhones.

Personally I suspect JavaScript (or a subset of it) will get to the speed of native code sooner than we can run native code in a cross platform way in most of our browsers.