iphone ogl-es low fps

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
penguin03
Posts: 25
Joined: Fri Apr 19, 2013 9:52 am

iphone ogl-es low fps

Post by penguin03 »

I ported my pc game to iphone, using ogl-es opengl 1.x driver, it's running, but the fps is low, about 15 fps. I use xcode tools to check, the sceneManager->drawAll() spent a lot of time. The gpu is 6%.

Any suggestion to improve the performance?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: iphone ogl-es low fps

Post by hybrid »

There's good chances that you find some simple settings, which help in this situation. Simply because the driver is not yet fully tested. But far better chances are, that it is due to your scene setup. So maybe tell us, which settings you chose for the device setup, and what you render in your scene.
penguin03
Posts: 25
Joined: Fri Apr 19, 2013 9:52 am

Re: iphone ogl-es low fps

Post by penguin03 »

I draw an oct tree scene, and about 4 character animation. The total triangle number is 27k, the drawAll spent time is about 30-52 ms. the game logic needs some time, so the fps is about 15.

My setting is: OPENGL es 1.1, screen size: 1024x768, the device is ipad 3, landscape mode, the retina mode is disabled. I use an old version of ogl-es, about 20 days ago, the lastest revision 4509 is worse, only 9fps. I can tell you the revision number later.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: iphone ogl-es low fps

Post by hendu »

Octree takes a lot of cpu. Not really a good choice on a mobile.
penguin03
Posts: 25
Joined: Fri Apr 19, 2013 9:52 am

Re: iphone ogl-es low fps

Post by penguin03 »

Any suggestions for scenes on Mobile?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: iphone ogl-es low fps

Post by hendu »

Compare the octree with a normal scene node that's been set to EHM_STATIC.
penguin03
Posts: 25
Joined: Fri Apr 19, 2013 9:52 am

Re: iphone ogl-es low fps

Post by penguin03 »

I just tried to use normal node, not octree. A little slower than octree, now we have 13 fps. Octree is 15fps.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: iphone ogl-es low fps

Post by Nadro »

How many FPS do you have with animation disabled?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
penguin03
Posts: 25
Joined: Fri Apr 19, 2013 9:52 am

Re: iphone ogl-es low fps

Post by penguin03 »

After I hide the 4 character animations, it's better. Sometimes it's 30fps. But at some places, it's still 15-17 fps, maybe it's scene animation affected it.
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: iphone ogl-es low fps

Post by codetiger »

OpenGL ES chips are slow for following reasons.

1) Draw call limitations.
2) Transferring large data to GPU.
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Adversus
Posts: 128
Joined: Sun Oct 05, 2008 10:58 pm
Contact:

Re: iphone ogl-es low fps

Post by Adversus »

Have you verified you are using hardware vertex buffers?
Post Reply