Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTispe

Posted 06 July 2013 - 03:16 AM

Try this with my timer. 

GameTimer FrameTimer;
while(run_game) {
if(FrameTimer.HasElapsed(60))       //Render every 60ms
{
	update_game();
	render_game();
}
else
{
Sleep(0)
 }
}

#1Tispe

Posted 06 July 2013 - 03:14 AM

Try this with my timer. 

while(run_game) {
if(HasElapsed(60))       //Render every 60ms
{
	update_game();
	render_game();
}
else
{
Sleep(0)
 }
}

PARTNERS