Jump to content


how to implement my game loop


3 replies to this topic

#1 zydgyy

    New Member

  • Members
  • PipPip
  • 10 posts

Posted 12 January 2012 - 01:31 AM

Hi,I have read about lots of stuff about game loop,but doesnt find a better a way to implement mine!
If my game is siutation like not much interactive with players,just they input a little,and then run the game,what kind of game loop does it suit?On antoher hand,a lot of interactives,what about it?
Any help would be thanked~~~

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5307 posts
  • LocationBellevue, WA

Posted 12 January 2012 - 01:57 AM

If the game needs to continue running, showing some animation or movement on the screen, then I would just use a standard game loop. It doesn't matter if the player only interacts with it every once in awhile.

But if the screen remains totally static for long periods of time you might opt to use a modified loop that will only re-render when something has changed.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 939 posts

Posted 12 January 2012 - 01:28 PM

Here is a very good article about game loop implementation details: http://www.koonsolo....tters-gameloop/

#4 MarekKnows.com

    Valued Member

  • Members
  • PipPipPip
  • 190 posts
  • LocationOntario, Canada

Posted 06 February 2012 - 11:42 AM

Here is another good article: http://gafferongames...-your-timestep/
C++, 3D OpenGL and Game Programming video tutorials:
www.MarekKnows.com
Play my free games: Ghost Toast, Zing





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users