PDA

View Full Version : VBO performance questions



duhroach
08-01-2003, 08:43 PM
I've just gotten around to implimenting VBO into a heightmapped terrain (quadtree). Is their a minimum amount of polygons to be placed in a given vbo? Each node has roughly about 1200 polies in it, and i'm using interleaved vertex arrays.

however i'm getting the same frame rate wether i'm using VBO's, standard VertArrays, or even just rendering straight polies. And all i've read from other's posts is that the VBO's helped a huge amount of engine effency.

Am i missing something in the implimentation that i should be aware of?

thanks
~Main

JanHH
08-01-2003, 08:47 PM
what happens if you use display lists (as i do)?

btw, the terrain is segmented into quads, I guess, so is yours http://www.opengl.org/discussion_boards/ubb/wink.gif. and I noticed no difference from using a quad tree for culling compared to simply test every quad (final tree node) for visibility, although more objects were tested, it was _faster_, seems that the visibility testing is faster than traversing the tree.

Jan

duhroach
08-01-2003, 09:01 PM
I'm setting up the camera in a 3/4 angle as for an RTS view so visibility testing (besides frustum) isn't in the plans.

As for display lists, I haven't seen all that stats on them, although memory intensive are they still being used pretty standard?

~Main

Korval
08-01-2003, 11:21 PM
Is all of your vertex data floats (except for colors, which can be unsigned bytes)? If not, then your speed won't be any better than regular vertex arrays.

Adrian
08-01-2003, 11:33 PM
Perhaps you are fillrate limited. Reduce the size of your window to 640x480 and benchmark again.

Jan
08-02-2003, 01:18 AM
Adrian is right. Most applications are fill-limited.
Make sure you have a LOT of triangles (say 100.000 or more), which get ALL rendered. Also disable texturing and all other stuff, which would reduce the fillrate.
When you have your application to be geometry limited, than check again the difference between VBO, VAs and immidiate mode.

Jan.

duhroach
08-02-2003, 05:28 AM
Adrian : Reducing the window size did infact change the results, thanks!!

Another question though, how does an application become "fill-rate" limited, and why does that have such a big impact on VBO, VA, & IM?

Does reducing the window size simply reduce the number of pixels required to render? and If that's how we get around it, then how can games now adays pull off 1024x768 resolutions ??

thanks again!!
~Main

Adrian
08-02-2003, 06:14 AM
Reducing window size does indeed reduce the number of pixels rendered.

If you are fill rate limited then it doesn't matter what other optimisations you do(e.g. VBO etc), the app has to wait for the card to finish filling polys at the end of each frame and this will limit the speed of your app.

An application becomes fill rate limited if you draw lots of overlapping polygons. It's not that hard to reach the fill rate limit.

To reduce your fill rate usage you can

1) not draw polys/objects that are completely occluded.
2) Draw polys/objects in front to back order.
3) If you don't require a 24bit z-buffer, use 16 bit.