Sign in to follow this  
ministe2003

counting polys currrently on screen

Recommended Posts

Hi all, I'm currently using ID3DXBaseMesh::GetNumFaces() to get the number of polys in my demo, however this is obviously just going to count every poly of everything. Is there a way that I can just count the number of polys on screen at that time without having to change my rendering method from DrawSubset() to something long winded like trianglelist? Thanks Ste

Share this post


Link to post
Share on other sites
Assuming you are doing some form of spatial partitioning or frustum culling, the easist thing would be to count the number of polys on the models, billboards, etc. that you actually Draw() on during the frame. Obviously some will be partially or fully offscreen, but they still contribute to increasing reander time, so should be counted imho.

Now if you want the polys literally *on the screen*, as in, all triangles either fully or partially inside the frame buffer, that seems a bit more complex. =)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this