Game Development Community

Triangles vs. triangle lists vs. triangle strips?

by Andy · in Artist Corner · 03/09/2008 (10:39 am) · 8 replies

I've noticed a *huge* in-engine performance benefit for most models (1000+ polys) when using the "triangle list" selection of the Blender exporter.

Whatever it's doing, it's doing it right. I have seen this across platforms (Win32, OSX, Linux), and on older graphics (Radeon 9600 & nvidia 5000-series) hardware.

By "performance benefits" I mean I still get great framerates. In the other cases (triangles or triangle strips), I take a huge hit in framerate (200+ FPS down to 10 FPS) with only one triangle or triangle-strip model loaded into the engine.

Has anyone else noticed this difference?

Are there any circumstances where I'd actually want to export as triangles or triangle-strips rather than triangle lists?

#1
03/09/2008 (11:20 am)
Have you looked into the blog post Blender DTS Exporter 0.93 Released of Joseph Greenawalt?

Quote:What's New for version 0.93

* Added a Built-in triangle stripper "QADTriStripper" (Quick and Dirty Triangle Stripper)

* VTK Triangle stripping is also tested and working now.

* Changed mesh export code to allow multiple triangles all belonging to the same material group to be stored inside a single "Triangles" (triangle list) primitive. Previously the exporter was storing each tri in a separate primitive, resulting in tons of unneeded gl calls.

#2
03/09/2008 (3:47 pm)
...
#3
03/09/2008 (4:18 pm)
Setting $pref::TS::UseOneStrip = "1"
cause torque to lockup on loading missions for me.
#4
03/09/2008 (4:20 pm)
...
#5
03/09/2008 (4:21 pm)
I turned off useonestrip, and turned on the usetriangles, same thing. maybe i'm doing it wrong. perhaps one of my models is causing issues.
#6
03/09/2008 (4:25 pm)
Yeah, was my player model causing issues.
I don't use the blender exporter, i know that the Lightwave exporter i use doesn't support triangle optimizations at all. Was hoping this would provide a speed boost, but there doesn't appear to be any change in frame rate.
#7
03/09/2008 (4:34 pm)
...
#8
03/09/2008 (4:39 pm)
It's not. :(

i've checked with TSTPro.

I'd love to get the source code for the exporter so i could improve it.