Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Triangle Count
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Triangle Count (Read 2395 times)
aZen
int
Posts: 94
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!
Logged
http://blackflux.com/
AGP
quad
Posts: 1726
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
»
Logged
aZen
int
Posts: 94
Re: Triangle Count
«
Reply #2 on:
December 13, 2013, 12:27:58 am »
That works, thanks for the reply!
Logged
http://blackflux.com/
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Triangle Count