[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3496 - trunk/pingus/src
From: |
plouj at BerliOS |
Subject: |
[Pingus-CVS] r3496 - trunk/pingus/src |
Date: |
Tue, 6 Nov 2007 18:42:41 +0100 |
Author: plouj
Date: 2007-11-06 18:42:40 +0100 (Tue, 06 Nov 2007)
New Revision: 3496
Modified:
trunk/pingus/src/game_session.cpp
Log:
added comments clarifying what the code seems to be doing
Modified: trunk/pingus/src/game_session.cpp
===================================================================
--- trunk/pingus/src/game_session.cpp 2007-11-05 12:15:34 UTC (rev 3495)
+++ trunk/pingus/src/game_session.cpp 2007-11-06 17:42:40 UTC (rev 3496)
@@ -130,11 +130,15 @@
return;
}
+ // how long did the previous frame processing take (ignoring idle delay)
int time_passed = int(delta.get_time() * 1000) + left_over_time;
+ // how long we want each world update to take
int update_time = game_speed;
left_over_time = 0;
+ // update the world (and the objects in it) in constant steps to account
+ // for the time the previous frame took
{
int i;
for (i = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3496 - trunk/pingus/src,
plouj at BerliOS <=