How to control the game fps?

View previous topic View next topic Go down

How to control the game fps?

Post  LuisLee on Sun Oct 11, 2009 8:55 pm

In my games,As long as an object collisions, the game's fps will drop.

Down to 15fps . (Originally 30fps),

fps is so low,This is normal?My big scene, but as long as no collision, there is 32fps.The number of scene faces 1000. Fps drop is not normal. Have any suggestions? thank you!
Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 30

View user profile

Back to top Go down

Re: How to control the game fps?

Post  sio2interactive on Sun Oct 11, 2009 9:20 pm

When your level start put all the activation state of your dynamic/rigid body objects to wants deactivation...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: How to control the game fps?

Post  LuisLee on Sun Oct 11, 2009 11:54 pm

sio2interactive wrote:When your level start put all the activation state of your dynamic/rigid body objects to wants deactivation...

Use this?

Myobject->_SIO2objectphysic->_btRigidBody->setActivationState( WANTS_DEACTIVATION );

I tried,but No change.
Could you please give some specific methods?

Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 30

View user profile

Back to top Go down

Re: How to control the game fps?

Post  Francescu on Mon Oct 12, 2009 12:46 am

Do this:
Myobject->_SIO2objectphysic->_btRigidBody->setActivationState(ISLAND_SLEEPING);

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: How to control the game fps?

Post  LuisLee on Mon Oct 12, 2009 4:32 am

OK! thank you very much!
Very Happy I tried a few states, have not tried on this

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 30

View user profile

Back to top Go down

Re: How to control the game fps?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum