Author Topic: Triangle Count  (Read 2388 times)

Offline aZen

  • int
  • **
  • Posts: 94
    • View Profile
Triangle Count
« 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!

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Triangle Count
« Reply #1 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().
« Last Edit: December 12, 2013, 02:29:20 am by AGP »

Offline aZen

  • int
  • **
  • Posts: 94
    • View Profile
Re: Triangle Count
« Reply #2 on: December 13, 2013, 12:27:58 am »
That works, thanks for the reply!