Now, i'm using DirectX and C++ here, but I don't think it really matters.
My main loop right now looks like this:
//main loop for game
void Game::gameLoop()
{
detectInput();
Game::renderFrame();
return;
}
As you can see, the function is my main loop. It doesn't really do much yet, but i'm setting up my framework before I start with gameplay.
My question is, when I go to set up a frame rate limiter, do I want to limit the entire game loop, or just the renderFrame() function? All my render frame does is just that, renders a single frame. Would things like scanning for input and updating AI and all that want to be limited to 60 fps? I assume not, but I'm still slightly new to things, so I'd rather get better advice other than my own assumptions. Thanks!

New Topic/Question
Reply



MultiQuote






|