mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Fix FPS again (#592)
This commit is contained in:
parent
054b1bd03d
commit
62ced7973b
1 changed files with 5 additions and 1 deletions
|
|
@ -198,7 +198,11 @@ void produce_interpolation_frames_and_delay(void) {
|
|||
remainingTime / (f64) MAX(1, configFrameLimit - sDrawnFrames)
|
||||
);
|
||||
|
||||
if (!configUncappedFramerate && (remainingTime < 0.0 || sDrawnFrames >= configFrameLimit)) {
|
||||
// Reset counters if:
|
||||
// - Freeze/lag happens during at least 1 game update
|
||||
// - No time left for drawing the remaining frames
|
||||
// - All frames are already drawn
|
||||
if (!configUncappedFramerate && (curTime > targetTime || remainingTime < 0.0 || sDrawnFrames >= configFrameLimit)) {
|
||||
compute_fps(sPeriodTimeStart, curTime);
|
||||
sPeriodTimeStart = curTime;
|
||||
sFrameTimeStart = curTime;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue