   Poly Count
  Is there a quick way to find out how many polygons opengl has drawn in a frame? Degra   
Quote:Original post by DegraIs there a quick way to find out how many polygons opengl has drawn in a frame?There might be some tricks I don't know about, but I don't know of any quick methods for querying this info from OpenGL (someone else may though).There's feedback mode, but that probably isn't particularly fast. What do you need the info for? Something like on onscreen polycount display? In my experience this info usually seems to come from the engine, not OpenGL. For example, if you have a system set up where you perform frustum culling and then send vertex arrays to a renderer class or module for rendering, the renderer can easily keep track of the total number of triangles that have been submitted. Keep in mind that unless you're culling per triangle (which you shouldn't be), your renderer will process some triangles which won't appear onscreen. So the polycount will actually reflect the number of polys processed, not necessarily the number visible.If you need the actual number of polys that are partly or completely visible, the only methods I can think of at the moment are per-poly frustum culling or OpenGL feedback mode. Maybe someone else will suggest a better solution though.   ;  I'll try feedback mode. I would do it the other way you suggested, but I'm using glutSolidSphere, and they make up the bulk of the polys.I want to find out, partially for curiosity, and partially so that I know what sort of numbers I'm dealing with for when I design the main ship model.Degra   ;  there is some discussion on this in this thread:http://www.gamedev.net/community/forums/topic.asp?topic_id=330641The method I use is posted near the end of the thread. In my post I say that it doesnt cover rendering display lists or vertex arrays, but you can do a similar thing to count for vertex arrays.   ;Quote:Original post by DegraI'll try feedback mode. I would do it the other way you suggested, but I'm using glutSolidSphere, and they make up the bulk of the polys.I want to find out, partially for curiosity, and partially so that I know what sort of numbers I'm dealing with for when I design the main ship model.DegraWhen you count number of polys using your engine, you can calculate the number of polys in the sphere as well (two triangles per quad, horizDetail*vertDetail number of quads)   