[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3493 - trunk/pingus/src/screen
From: |
plouj at BerliOS |
Subject: |
[Pingus-CVS] r3493 - trunk/pingus/src/screen |
Date: |
Sun, 4 Nov 2007 23:39:41 +0100 |
Author: plouj
Date: 2007-11-04 23:39:40 +0100 (Sun, 04 Nov 2007)
New Revision: 3493
Modified:
trunk/pingus/src/screen/screen_manager.cpp
Log:
added and fixed some comments
Modified: trunk/pingus/src/screen/screen_manager.cpp
===================================================================
--- trunk/pingus/src/screen/screen_manager.cpp 2007-11-04 18:06:11 UTC (rev
3492)
+++ trunk/pingus/src/screen/screen_manager.cpp 2007-11-04 22:39:40 UTC (rev
3493)
@@ -72,16 +72,19 @@
// Main loop for the menu
while (!screens.empty())
{
+ // how long the previous frame (iteration) took (if any)
float time_delta = delta_manager.getset();
+ // previous frame took more than one second
if (time_delta > 1.0)
{
if (maintainer_mode)
std::cout << "ScreenManager: detected large delta (" << time_delta
<< "), ignoring and doing frameskip" << std::endl;
- continue;
+ continue; // skip this frame
}
+ // update the input
input_manager.update(time_delta);
// Fill the delta with values
@@ -90,13 +93,13 @@
last_screen = get_current_screen();
- // Most likly the screen will get changed in this update call
+ // Most likely the screen will get changed in this update call
get_current_screen()->update (delta);
if (cursor)
cursor->update(time_delta);
- // Last screen has poped, so we are going to end here
+ // Last screen has popped, so we are going to end here
if (screens.empty())
continue;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3493 - trunk/pingus/src/screen,
plouj at BerliOS <=