PDA

View Full Version : Can GL_POLYGON be fast and efficient?


Oats
17-Apr-2004, 11:36
title pretty much sums it up...

Rolf N
17-Apr-2004, 14:55
It heavily depends ... generally no, because you can't fire long batches with glDrawElements (and friends) anymore.

You can try ARB_multi_draw_arrays (which theoretically could be the perfect fix, but doesn't appear to do squat for neither NV nor ATI) or NV_primitive_restart (which I haven't tried yet ...).

The straightforward solution is to not use GL_POLYGON ;)
This isn't necessarily a bad thing, you can still get full vertex reuse if you use indexed triangles.