How do you set the framerate?

Is there an easy way to get my code and the game components to run at constant 60 FPS so that I can have the same experience between different machine?

Are we going to see a feature in the GraphicsComponent that will allow me to set this?

[240 byte] By [AndreOdendaal] at [2007-12-25]
# 1

You can set the rate that the Update routine gets called by viewing the designer and setting IsFixedTimeStep to true and setting TargetElapsedTime to the number of milliseconds between calls, but I don't think there is any way to lock the rate that the Draw routine is called. It would probably be way too variable based on the GPU of the computer it is running on to be reliable. Even TargetElapsedTime isn't guarenteed.

KurtJaegers at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2
Thanks, I didn't see that!

At least it's a start and so long as I can get relatively consistent play between machines I'm happy.

AndreOdendaal at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...