Deadline for DreamBuildPlay is very close now. So I didn't have the time to use your 0.10 Version, cause too many things have changed. So I am still working with 0.09... So my problem is, and I really hope, you can help me:
Update and Draw-Cycle do not fit into 60fps but in 30fps. The update cycle needs about 10ms and der draw cycle about 20ms. So XNA does not use automatically 30fps. It tries to run Update function with 60fps and draw function is only called about 2-5 fps, even it would fit in FPS.
So I did following, I changed the TargetElapsedTime:
Code: Select all
this.TargetElapsedTime = TimeSpan.FromSeconds(1.0f/30.0f);
this.IsFixedTimeStep = true;
Code: Select all
Space.simulationSettings.useInternalTimeStepping = true;
Space.simulationSettings.timeStep = 1.0f/30.0f;
Code: Select all
space.update((float)gameTime.ElapsedGameTime.TotalSeconds);
Norbo, you are my last hope Many thanks for helping!