This project is read-only.

Slow tutorials on v3.5

Nov 9, 2010 at 2:49 AM
Edited Nov 10, 2010 at 12:43 AM

Hi!

Tutorials 5 and 9 are slowest that versions of Goblin v3.4.

This issue is why Goblin is in Beta version ?

Thanks for your attention  (sorry the bad english).

Coordinator
Nov 10, 2010 at 6:09 PM

It shouldn't run slow. Both are physics related tutorials, so maybe Newton runs slow on your computer?

It's (Beta) because the User Manual is not updated yet, but the codes are Stable.

Ohan

Dec 18, 2010 at 10:46 PM
Edited Dec 19, 2010 at 12:01 AM

Hi Ohan!

When i put this line of code:  "((NewtonPhysics)scene.PhysicsEngine).MaxSimulationSubSteps = 5;" on tuts 5 and 9 of 3.5 version,  all works well again.(Newton is a very cool engine)

Thanks again for this great project and your attention.

Merry Christmas at all!

Coordinator
Dec 19, 2010 at 11:37 PM
Edited Dec 19, 2010 at 11:38 PM

Oh, ok, that's what you meant by 'slow'.

Ya, increasing MaxSimulationSubSteps will make the physics engine update more times if needed.

If the elapsed time for each Draw call is much less than the PhysicsEngine.SimulationTimeStep property, then it will update very slowly for the simulation (not the FPS). To fix this, you can allow the physics engine to update more than 1 time by changing MaxSimulationSubSteps. Note that it will also require more CPU time since it's updating more than once in each Draw call. If your actual FPS gets too low, then you want to decrease this sub steps.

Another way to make the simulation "look faster" is to increase the Gravity property. Changing this won't hurt the performance so you want to play around with each property to see which combinations give your best result in terms of performance (FPS count) and simulation speed.

Ohan