Limit The Game Loop?

Posted by user1758938 on Game Development See other posts from Game Development or by user1758938
Published on 2012-10-27T13:15:21Z Indexed on 2012/10/27 17:18 UTC
Read the original article Hit count: 413

Filed under:
|
|
|

How do I make a game go at the same speed? You probly dont understand that so here are examples:

This Would Loop Too Fast while(true)
{
GetInput();
Render();
}

This Just Wont Work, Hard To Exlplain
while(true)
{
GetInput();
Render();
Sleep(16); }

Basicly How Do I Sync It To Any FrameRate And Still Have To Input And Funtions Going At The Same Rate?

© Game Development or respective owner

Related posts about c++

Related posts about game-design