did not mean to push this
This commit is contained in:
1 parent
174a7b5d84
commit
2dc3ca5f01
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -877,7 +877,7 @@ void D_SRB2Loop(void)
|
||||
|
||||
// Use the time before sleep for frameskip calculations:
|
||||
// post-sleep time is literally being intentionally wasted
|
||||
deltasecs = (double)(finishprecise - enterprecise) / I_GetPrecisePrecision();
|
||||
deltasecs = (double)((INT64)finishprecise - enterprecise) / I_GetPrecisePrecision();
|
||||
deltatics = deltasecs * NEWTICRATE;
|
||||
|
||||
// If time spent this game loop exceeds a single tic,
|
||||
@@ -911,7 +911,7 @@ void D_SRB2Loop(void)
|
||||
}
|
||||
// Capture the time once more to get the real delta time.
|
||||
finishprecise = I_GetPreciseTime();
|
||||
deltasecs = (double)(finishprecise - enterprecise) / I_GetPrecisePrecision();
|
||||
deltasecs = (double)((INT64)finishprecise - enterprecise) / I_GetPrecisePrecision();
|
||||
deltatics = deltasecs * NEWTICRATE;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ void I_UpdateTime(fixed_t timescale)
|
||||
ticratescaled = (double)TICRATE * FixedToDouble(timescale);
|
||||
|
||||
enterprecise = I_GetPreciseTime();
|
||||
elapsedseconds = (double)(enterprecise - oldenterprecise) / I_GetPrecisePrecision();
|
||||
elapsedseconds = (double)((INT64)enterprecise - oldenterprecise) / I_GetPrecisePrecision();
|
||||
tictimer += elapsedseconds;
|
||||
while (tictimer > 1.0/ticratescaled)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user