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-AE - a 3d engine for Android
»
Support
»
Draw calls and frame rate
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Draw calls and frame rate (Read 1986 times)
tao
byte
Posts: 16
Draw calls and frame rate
«
on:
March 05, 2014, 08:40:43 am »
Hi,
Is there a way to get the number of draw calls in each frame render? I want to improve the frame rate, and first I need to figure out "Am I drawing too many objects?".
Thanks
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Draw calls and frame rate
«
Reply #1 on:
March 08, 2014, 09:21:29 am »
You could attach an implementation of the IRenderHook interface to each object and count the calls to beforeRendering().
Logged
tao
byte
Posts: 16
Re: Draw calls and frame rate
«
Reply #2 on:
March 14, 2014, 02:47:27 am »
Thanks Egon, so each Object3D consumes one draw call? If I have 10 planes and they share the same texture will they 'batched' as one draw call, or still 10 draw calls?
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Draw calls and frame rate
«
Reply #3 on:
March 14, 2014, 07:37:13 am »
It needs at least one draw call per object. There might be more if the object uses different textures for different parts.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Draw calls and frame rate