www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Dinin on March 08, 2015, 03:15:53 pm

Title: Processtime for renderScene and draw
Post by: Dinin on March 08, 2015, 03:15:53 pm
Hi,

just a short question about processtime for world.renderScene() and world.draw().
I have a world with about 20-25 Objects with 770 Polys.
The objects are keyframe animated and the textures are 128x128.
So one renderScene takes about 6ms and world.draw takes between 30-40ms.
Is this a normal time or am i doing somithing wrong ?

I'm testing on a htc one m8.

thx
Dinin
Title: Re: Processtime for renderScene and draw
Post by: EgonOlsen on March 08, 2015, 05:04:08 pm
Are all the objects animated?
Title: Re: Processtime for renderScene and draw
Post by: Dinin on March 08, 2015, 09:34:15 pm
Yes all objects are animated.
Title: Re: Processtime for renderScene and draw
Post by: EgonOlsen on March 08, 2015, 09:37:39 pm
In that case, it's a reasonable performance. If you want to increase it...maybe you can reduce the amount of animated objects? What kind of are these objects/animations?
Title: Re: Processtime for renderScene and draw
Post by: Dinin on March 08, 2015, 09:42:36 pm
I'm trying to create a zombie game and the objects are zombies running, attacking ... so human animation.
How much does reducing the polygons improve the performance ? It 1:1 ? so if i reduce the polygons to 1/2 is there double performance ?
Title: Re: Processtime for renderScene and draw
Post by: EgonOlsen on March 09, 2015, 07:42:28 am
Hard to tell...i don't think that it's 1:1, but i might be wrong. The actual animation processing is rather cheap. What's expensive is transfering the modified vertices to the GPU.