www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: aZen on December 11, 2013, 11:38:47 pm

Title: Triangle Count
Post by: aZen on December 11, 2013, 11:38:47 pm
Is there an easy way to access how many triangles were rendered in the previous frame (software renderer)?

I'd like to use it for my dynamic optimization algorithm (it's actually only an idea right now).

Thanks!
Title: Re: Triangle Count
Post by: AGP on December 12, 2013, 02:27:49 am
You can get the visibility list with World.getVisibilityList(). Then, the polygon count of the last frame would be visList.getSize().
Title: Re: Triangle Count
Post by: aZen on December 13, 2013, 12:27:58 am
That works, thanks for the reply!