Today is hard day
Sooooo hard
This is GameLoop the best post !!!!!
http://www.koonsolo.com/news/dewitters-gameloop/
In this post, "Constant Game Speed independent of Variable FPS"
const int TICKS_PER_SECOND = 25;
const int SKIP_TICKS = 1000 / TICKS_PER_SECOND;
const int MAX_FRAMESKIP = 5;
while ( GetTickCount() > next_game_tick && loops < MAX_FRAMESKIP )
{
update_game();
next_game_tick += SKIP_TICKS;
}
Please Look bold...
I don't understand...
What does mean "GetTickCount() > next_game_tick && loops < MAX_FRAMESKIP" ?
How many "Update()" call ?
Why ? next_game_tick += SKIP_TICKS;(==40 Tick)
Why add 40 tick ?
I don't understanding really...
I do not know how to be to find information.
Please let me us.....
Please.....
It's so hard......







