Geeks With Blogs


Google My Blog

Catch me at: The List!

My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer

Chris G. Williams Beware: I mix tech and personal interests here.

The MonoGame Game Loop (just like the XNA Game Loop)

In the previous section, we talked about what you can find in the MonoGame project, so these methods should look familiar.  Now I’ll explain a bit more about them, but first, a picture…


  • The Initialize() method is called only once, when your game first starts up.
  • The LoadContent() method is called from the Initialize() method, and is where any content assets (3D, 2D, spritefonts, music) would be loaded.
  • The Update() and Draw() methods form the game loop.

The Game Loop keeps going until you exit out of it. One pass through both of these methods is called a frame, and on the Playstation and Xbox, you’ll get about 60 frames per second (FPS). Some smartphones run about 30 FPS. Your performance can vary significantly on a PC, because of the hardware involved, but consoles give a pretty consistent experience overall. We’ll cover a bunch of the interesting things you can do in the Update() and Draw() methods in a later post.

  • The UnloadContent() method is where you would dispose of any resources you loaded up for your game.


Next up…

I’ll cover putting something on the screen. If you came directly to this page, you can find the complete list of articles here.

Posted on Monday, February 13, 2017 2:35 PM Game Development , MonoGame | Back to top

Comments on this post: 5. MonoGame - The Game Loop

# play
Requesting Gravatar...
Most people excited to join the window 10 it is the best operating system for the web users so have the most fun to get help windows 10 upgrade do the work hurry i sure you like the most update thanks for the share this information.
Left by game on Nov 19, 2017 5:35 AM

# re: 5. MonoGame - The Game Loop
Requesting Gravatar...
I came to know more about the MonoGame and the requirements for installing the program. This is the first time I came across such a program. However, there are no clear indications for the uses of the program here. Private Tours of DC
Left by Taylor Shaw on Dec 18, 2017 5:00 AM

# re: 5. MonoGame - The Game Loop
Requesting Gravatar...

It is so something the site how to change windows password windows 10 password windows site in the great lession.
Left by sidd yadav on Jan 27, 2018 1:15 AM

# kizi games
Requesting Gravatar...
From around 2009 to 2011 I edited a Flash gaming blog called kizi fan. A belated effort to expand the company's then-considerable
Left by Linus Gardner on May 20, 2018 11:16 PM

Your comment:
 (will show your gravatar)

Copyright © Chris G. Williams | Powered by: