
CHAPTER 1 ■ GETTING STARTED WITH XNA 3.0
14
Insomecases,itcanbeusefultocallyourDraw method at maximum frequency, for
example, to determine the maximum frame rate of your Game. You can do this by setting the
graphics.SynchronizeWithVerticalRetrace variable to false:
graphics.SynchronizeWithVerticalRetrace = false;
■Note You must put this line in the Game1 constructor at the top of your code, because XNA needs to be
aware of this before it creates
GraphicsDevice.
Understanding the Importance of the Update and Draw Frequencies
Since you’ll put your update login in the Update method,a(temporal)decreaseoftheUpdate
frequencywouldmakeallobjectsinyourgamemovemoreslowly,whichisveryannoying. ...