Author Topic: Processtime for renderScene and draw  (Read 564 times)

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Processtime for renderScene and draw
« 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
« Last Edit: March 08, 2015, 03:46:22 pm by Dinin »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Processtime for renderScene and draw
« Reply #1 on: March 08, 2015, 05:04:08 pm »
Are all the objects animated?

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: Processtime for renderScene and draw
« Reply #2 on: March 08, 2015, 09:34:15 pm »
Yes all objects are animated.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Processtime for renderScene and draw
« Reply #3 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?

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: Processtime for renderScene and draw
« Reply #4 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 ?
« Last Edit: March 08, 2015, 09:52:05 pm by Dinin »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Processtime for renderScene and draw
« Reply #5 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.