Original Post
Hi, I was wondering what the best way to set up the main game loop is
right now i''m using QueryPerformanceCounter to make the game run at a constant 60FPS.
my questions are: do you check for user input every frame or in between frames?
also if it''s not time to update the frame do you do something else, like process game logic and sound etc, or do you just do everything when it''s time to change frames like this?
if(time to draw frame){
GetInput();
DoSound();
DoAI();
DrawFrame();
}
can you do things between frames or no?
thanks for the help people
NiNo