PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Low 3D performance on X50v (2700G) ?

i wrote a little performance test for the X50v and i'm a little bit disappointed of its rendering performance.

here's my benchmark:
i render 8 teapots with 1024 triangles each. the mesh is an indexed triangle-strip with 81 strips - so those are quite long strips on average. i activated two lights and no texturing. all mesh data is passed as fixed-point and the indices are passed as unsigned short using glDrawElements(). from my point of view there is nothing that can be optimized here since the 2700G does neither support glMultiDrawElements nor vertex buffers.

what i achieve is this:
rendering the teapots with two activated lights i get 17fps which results in 140k triangles per second. turning of the lights i get 21fps which means 180k tris/sec. both is far away from the 800k tris/sec that intels docs tell...

i attached the rendered image...

any ideas on this?
thx,
Daniel

Image
What FPS are you seeing rendering only wireframe?

Dan East
the fps for lines are a lot lower, since my OpenGL wrapper library emulates glPolygonMode() by rearanging the indices and drawing GL_LINE_LOOPs.

in this case it's about ~50% of the filled speed.

Daniel
If you want to build your test program with STANDARDSDK I'll test it on the ATI 2300 running on an XScale 400MHz.

I don't think I can do it today, but I should be able to this week.

Bandwidth is almost certainly an issue, because we ran into that with the 2300. Geometry caching is critical.

Dan East
Dan: Which library does the ATI 3200 provide for 3D graphics? OpenGL|ES CL 1.0 ?

Daniel
OpenGL ES 1.0. At least that's what I have.

Dan East
what i achieve is this:
rendering the teapots with two activated lights i get 17fps which results in 140k triangles per second. turning of the lights i get 21fps which means 180k tris/sec. both is far away from the 800k tris/sec that intels docs tell...


180k polygons is not really low. Keep in mind that those 800k polygons/s is only possible if you have them pretransformed in a vertex buffer. You are most likely limited by the CPU not by the 2700g (and possibly by the OpenGL implementation itself)
That the fps drops with lights activated give more evidence of the fact that the CPU limits performance.

Tala
hi Tala,

my concern is not that 180k triangles/sec would be to low (but in fact it is not that much) but that the documentation for the chip states that it can do 800k triangles/sec.

there are no vertex buffers for that chip. at least there is no documented opengl extension for it.

the documentation also states that the full pipeline is done in hardware. so there should be no cpu limitations.

Daniel
Reaching about 25% of stated performances seems in line with what video cards manufacturers have been delivering for years.
Reaching about 25% of stated performances seems in line with what video cards manufacturers have been delivering for years.

that's not fully true.
usually one could reach the specified performance in artificial setups, such as many, many tiny, simple triangles.

my setup contains just this. the triangles are arranged in long indexed strips, no textures, no lighting, ideal data format, stc...
and still i can not get more than 20% of what should be possible.

i'm a bit disappointed.
i'll do tests with more realistic scenes (larger objects, texturing, less polygons) and see how it performs then...

Daniel
drgoldie, can you send me the files ( executable and necessery files ), i would test it, in Axim X50V and Ipaq4150. :)
You can send the files to skirep@gawab.com

Thank you !
sorry, i can't send these files to you since they contain some stuff which i can't give away at the moment.

besides that: i already tested it on an X50v and it won't run on a Ipaq4150 at all since that device does not have OpenGL|ES support (at least not in hardware)...

Daniel
I have Dell x50v and most of the games that uses GAPI have problems or it works but some of them sucks at vga :-(
this is not about GAPI (btw: there is a cool fix by picard that makes most games run a lot faster - or makes them run at all), but about using the 3D capabilities of the 2700G.

i think about writing a small 3D benchmark using OpenGL|ES so people can start testing performance on their devices.

does anybody know about existing software of that kind?

Daniel
that's not fully true.
usually one could reach the specified performance in artificial setups, such as many, many tiny, simple triangles.


As i said, that is pre transformed vertices in a vertex buffer(on chip). With your example the CPU is doing t&l;, which is at least 4 dot products and then transfering the data to the 2700g.
This is far from optimal.

Since i only used Direct3d in the past, i cannot give you any advise of how to accomplish this /

Tala
The 2700G only provides hardware rasterization capability. If you want to test it, send down pre-lit and pre-transformed primitives, front-facing, pre-clipped primitives. While the GPU will backface cull and clip, that "early-out" may not be what you want to measure and may have something to do with the quoted triangle rate.

Vary the size of the primitives to determine the fillrate. Vary the number of primitives to determine the triangle setup overhead. Where chips such as the 2700G really kick ass is when you have lots of overdraw with opaque textured surfaces. Regardless of the Z occlusion, they will only ever perform a single texture fetch per-pixel. This can be a tremendous win in terms of memory bandwidth requirements. Again, I don't know if this figures into their claimed triangle rate, but it wouldn't surprise me if it did. Sadly, that seems to be the norm in the GPU marketing departments.

You can always ask the PowerVR folks about the numbers, or post something on the Khronos message boards. They're pretty good guys and have helped me out in the past. BTW, I thought there WAS a VB extension for the MBX? You might ask them about that too. Good luck.
hi Digby,

you seem to know a lot about the 2700G.
what's the relation between the 2700G and PowerVR?
i thought that chip was designed by Intel...

Intel's OpenGL ES Framework Software Developer Guide for 2700G states: "The 2700G Multimedia Accelerator 3D acceleration provides a complete hardware 3D rendering pipeline."
so this is not true?

thx,
Daniel
Intel's OpenGL ES Framework Software Developer Guide for 2700G states: "The 2700G Multimedia Accelerator 3D acceleration provides a complete hardware 3D rendering pipeline."
so this is not true?


Depends how you define the term. However t&l; is done offchip by the application processor (as i already noted). Your vertices need to be pretransformed, prelit (if you want lights) and if possible load into and onchip vertex buffer. Backface culling, clipping and devide by w should be already processed by the 2700g.
As digby already said, prior to actually raster the image, the 2700g will transform faces into planes equations to do a fast z-check per tile and pixel. So a z-buffer is not really needed. With other words, in contrary to immediate renderers (like any other graphics chip) the 2700g needs the whole scene geometry before it starts to draw anything.

what's the relation between the 2700G and PowerVR?


The 2700g has an MBX light core, which is developed by Imagination Technologies, the same company who developed the PowerVR line of graphics chips (used in the Sega Dreamcast)

Again, I don't know if this figures into their claimed triangle rate, but it wouldn't surprise me if it did.


I doubt this, as fillrate and triangle rate are largely independent. (and quoting triangle performance is always assuming sufficiently small polygons) The triangle rate must have something to do with the insertion performance of triangles into the tile buffers (and thus transforming into planes).

Tala
Kristof-PowerVR · 17 Dec 2004, 10:38 UTC — Peak Triangle Performance
There is quite a bit of call overhead on mobile platforms as indicated in the various HW related presentations available here:

http://www.khronos.org/devu/library/

Your teapot scene has 81 strips and you draw 8 teapots thats a total of 648 draw calls per frame which is a lot of overhead (need to add all the other state change calls on top of this). Generally a game would do about a draw call per object, so realistically for your scene you should aim for a maximum of 8 draw calls - one per teapot. Easiest way to do this is to use indexed triangle lists. If you have good stripped data (very long strips) you could also use a single huge indexed strip but that would probabaly mean adding a couple of degenerate triangles, basically you stitch your 81 strips together into one mega strip.

Doing this will probably result in increased performance.

Btw the same comment applies to your MD2 code as used in the Benchmark. I wrote some MD2 code a while ago and IIRC it uses lots of small strips and fans by default. Again it would probably be better to avoid call overhead by turning this into indexed triangle data and thus a single draw call per MD2 model. I think the MD2 fan and strip sizes are too small to consider stitching them together and you can not do that with fans anyway.

Hope this helps,

K- PowerVR DevRel
i'll change the teapots to use one single strip by adding degenerated triangles.

the MD2 is just one call per object.

Daniel
hi kristof,

you were right.
i connected the strips, so that there is only one strip per teapot and the framerate went up from 17fps to 47fps for two lights.

i never got more than 60fps with OpenGL|ES on the 2700G, even with nothing rendered. so i trippled the load to 24 teapots which results in 19fps which is exactly the same triangle rate (~470k/sec).

with turned of lighting i get 550k tris/sec which is already in the region that intel specified.

since 470k lit triangles per sec (two lights) is quite a lot for software TnL i assume the chip actually does have TnL in hardware...

thx for the hint,
Daniel
drgoldie wrote:hi kristof,
since 470k lit triangles per sec (two lights) is quite a lot for software TnL i assume the chip actually does have TnL in hardware...


According to my intel source, TnL is done in done in software, but highly optimised for the xscale.
connected the strips, so that there is only one strip per teapot and the framerate went up from 17fps to 47fps for two lights


Thats very interesting. Seems one has to carefully choose the geometry when programming on mobile platforms. My intial guess was, that you were t&l; limited...but seems i was wrong. However you were indeed CPU limited :)

never got more than 60fps with OpenGL|ES on the 2700G, even with nothing rendered.


It may be limited by screen refresh, which i believe is 60Hz. Practically you would most likely want to set your target fps to half the screen refresh rate. (There is some function in the OpenGL ES API to do so)

since 470k lit triangles per sec (two lights) is quite a lot for software TnL i assume the chip actually does have TnL in hardware...


It would surprise me, if Intel did not utilize WMMX for this task.
A directional light is basically a dot product per vertex, which can done very fast using WMMX.

Tala
Kristof-PowerVR · 17 Dec 2004, 21:11 UTC
Yes, 60Hz is the screenrefresh you'll want to stay away from that in a benchmark. I don't think there is an official mechanism in OGL-ES to disable VSYNC which is what you'd normally do in a benchmark for peak performance.

Make sure to update the benchmark download and numbers 8)

Thanks for making the effort !

K- PowerVR DevRel
Hi Kristof,
i am curious, when the 2700g actually writes to the color buffer. As i understand the concept of deferred rendering, it should not immidiatly start after a single call to glDrawArray().
However it apparently renders to the color buffer even if i remove glFLush() and glFinish() calls. So when is the drawing actually triggered?

Tala
Kristof-PowerVR · 18 Dec 2004, 10:08 UTC
Tala wrote:Hi Kristof,
i am curious, when the 2700g actually writes to the color buffer. As i understand the concept of deferred rendering, it should not immidiatly start after a single call to glDrawArray().
However it apparently renders to the color buffer even if i remove glFLush() and glFinish() calls. So when is the drawing actually triggered?

Tala


There are various events that can trigger the render. I think the most likely cause in your program would be an eglSwapBuffers call since this is the moment you say: make the hidden backbuffer the visible frontbuffer.

Generally be carefull with the usage of glFlush() and glFinish(), I am not 100% sure how they behave but they could potentially stall the CPU while waiting for the actual render to complete. I think its glFinish() which does not return. I don't think either of these calls are required for correct rendering.

K- PowerVR DevRel