FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to control the game fps?

3 posters

Go down

How to control the game fps? Empty How to control the game fps?

Post  LuisLee 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 : 37

Back to top Go down

How to control the game fps? Empty Re: How to control the game fps?

Post  sio2interactive 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...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

How to control the game fps? Empty Re: How to control the game fps?

Post  LuisLee 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 : 37

Back to top Go down

How to control the game fps? Empty Re: How to control the game fps?

Post  Francescu Mon Oct 12, 2009 12:46 am

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

Francescu

Posts : 136
Join date : 2009-03-18

Back to top Go down

How to control the game fps? Empty Re: How to control the game fps?

Post  LuisLee 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 : 37

Back to top Go down

How to control the game fps? Empty Re: How to control the game fps?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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