3 ms·
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++ wit
by corysama 16y ago
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 http://www.youtube.com/watch?v=x2ncmwgJzqw
- chc 16y agoNaCl is cool technology, but it won't be ready for wide adoption until it's divorced from x86.
- kripken 16y agoVery 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.
- patrickaljord 16y agoFrom http://code.google.com/p/nativeclient/ 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/ http://code.google.com/p/nacl-llvm-branches/
- modeless 16y agoI 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.