how to implement my game loop

2f5a63c282518b88f1732bdca3b6acc4
0
zydgyy 101 Jan 12, 2012 at 01:31

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\~\~\~

3 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jan 12, 2012 at 01:57

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.

820ce9018b365a6aeba6e23847f17eda
0
geon 101 Jan 12, 2012 at 13:28

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

500367065665a05a847242a39a0bc69e
0
mmakrzem 101 Feb 06, 2012 at 11:42