This was part of the thread Your thoughts on runtime code generation/modification..., but I took the thread OT. So I've moved the OT posts into this new thread.
I've mentioned this before, but so far the only two games (that I know of) supporting OpenGL ES (ES Quake and MotoGP) both rely almost entirely on extensions to do the rendering. Without those extensions the bus bandwidth kills performance, and the GPU is hardly utilized at all (relative to its potential). This will be the norm.
Now this is purely my opinion, based on experience from both implementing a full blown OpenGL ES application, as well as implementing my own software 3D engine. At this time I think it is very premature to have a software based OpenGL ES renderer. One reason is the extensions I've already mentioned. There is no compatability at this time because OpenGL ES as currently described is not being used for actual hardware drivers (to clarify, it is properly supported, but extensions have to be used to make proper use of the hardware). Now from the software point of view, given a PPC's limited processing power, a less robust and less general purpose API is ideal for performance reasons. For example, PocketGL (and Varium, as it was originally derived from PocketGL) has a pool of vectors (the positional component), and specific vertices point to those vectors. Even with fans and strips, there are still many verts that could be shared that aren't. This is especially true with typical BSP geometry (as opposed to detail meshes, where just one or two textures can be skinned across hundreds of polys). With a custom API that segregates vertices from their positional vector component, you can completely eliminate translating and projecting the same vertex (specifically, multiple vertices with the same position) multiple times per frame. Now that's a huge deal. Transformation and polygon / span setup are more costly than rasterization (when highly optimized ASM rasterizers are used). Again, with BSPs, you can easily end up transforming and projecting each vertex at least twice. When the transformation occurs in hardware, and the geometry is already cached, then that has virtually no affect on performance.
So my point is that it is impossible to implement the fastest and leanest possible 3D engine while having to adhere to an API like OpenGL ES (which was designed for hardware rendering). The only other purpose then of supporting OpenGL ES is for portability, yet immediately out of the gate proprietary extensions are already being used for all rendering, breaking compatibility (at least for now)
Dan East
Digby wrote:I saw a message on this OpenGL ES compliant library on the Khronos.org site earlier this week. It also claims to use self-generating code for the inner loops of its rasterizer.
Click here
I've mentioned this before, but so far the only two games (that I know of) supporting OpenGL ES (ES Quake and MotoGP) both rely almost entirely on extensions to do the rendering. Without those extensions the bus bandwidth kills performance, and the GPU is hardly utilized at all (relative to its potential). This will be the norm.
Now this is purely my opinion, based on experience from both implementing a full blown OpenGL ES application, as well as implementing my own software 3D engine. At this time I think it is very premature to have a software based OpenGL ES renderer. One reason is the extensions I've already mentioned. There is no compatability at this time because OpenGL ES as currently described is not being used for actual hardware drivers (to clarify, it is properly supported, but extensions have to be used to make proper use of the hardware). Now from the software point of view, given a PPC's limited processing power, a less robust and less general purpose API is ideal for performance reasons. For example, PocketGL (and Varium, as it was originally derived from PocketGL) has a pool of vectors (the positional component), and specific vertices point to those vectors. Even with fans and strips, there are still many verts that could be shared that aren't. This is especially true with typical BSP geometry (as opposed to detail meshes, where just one or two textures can be skinned across hundreds of polys). With a custom API that segregates vertices from their positional vector component, you can completely eliminate translating and projecting the same vertex (specifically, multiple vertices with the same position) multiple times per frame. Now that's a huge deal. Transformation and polygon / span setup are more costly than rasterization (when highly optimized ASM rasterizers are used). Again, with BSPs, you can easily end up transforming and projecting each vertex at least twice. When the transformation occurs in hardware, and the geometry is already cached, then that has virtually no affect on performance.
So my point is that it is impossible to implement the fastest and leanest possible 3D engine while having to adhere to an API like OpenGL ES (which was designed for hardware rendering). The only other purpose then of supporting OpenGL ES is for portability, yet immediately out of the gate proprietary extensions are already being used for all rendering, breaking compatibility (at least for now)
Dan East