Time as computed by leveltime is not accurate
The leveltime
variable keeps track of the time spent playing a given level, but its seconds are longer than in the real world :)
Try this diff:
diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp
index 1a84485..24fc7a0 100644
--- a/Source/GameTick.cpp
+++ b/Source/GameTick.cpp
@@ -6042,6 +6042,8 @@ void Game::TickOnceAfter()
static float unseendelay;
static float cameraspeed;
+ printf("Level time: %f\n", leveltime);
+
if (!mainmenu) {
static int oldmusictype = musictype;
And let the game run for 60.0 s according to leveltime
, while keeping track of the time with your watch or phone.
Here I get 75 s in the real world for 60.0 in leveltime
.
My FPS seems to be stuck at 58, so that might explain some difference if leveltime
is based on the frames, but not 15 s.