mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 00:21:38 +00:00
Revert "- Set frame-time as close to the buffer swap as possible, and calculate smoothratio for Duke/SW as late as possible."
This reverts commit 97feb483ab
.
This commit is contained in:
parent
ea2790ce08
commit
d73bf62465
4 changed files with 5 additions and 4 deletions
|
@ -2724,7 +2724,6 @@ void videoNextPage(void)
|
||||||
{
|
{
|
||||||
g_beforeSwapTime = I_msTimeF();
|
g_beforeSwapTime = I_msTimeF();
|
||||||
videoShowFrame(0);
|
videoShowFrame(0);
|
||||||
I_SetFrameTime();
|
|
||||||
|
|
||||||
omdtims = mdtims;
|
omdtims = mdtims;
|
||||||
mdtims = I_msTime();
|
mdtims = I_msTime();
|
||||||
|
|
|
@ -941,6 +941,7 @@ void app_loop()
|
||||||
TickSubsystems();
|
TickSubsystems();
|
||||||
twod->SetSize(screen->GetWidth(), screen->GetHeight());
|
twod->SetSize(screen->GetWidth(), screen->GetHeight());
|
||||||
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
||||||
|
I_SetFrameTime();
|
||||||
|
|
||||||
handleevents();
|
handleevents();
|
||||||
updatePauseStatus();
|
updatePauseStatus();
|
||||||
|
|
|
@ -353,6 +353,8 @@ bool GameTicker()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double const smoothRatio = playrunning() ? I_GetTimeFrac() * MaxSmoothRatio : MaxSmoothRatio;
|
||||||
|
|
||||||
gameupdatetime.Unclock();
|
gameupdatetime.Unclock();
|
||||||
|
|
||||||
if (ps[myconnectindex].gm & (MODE_EOL | MODE_RESTART))
|
if (ps[myconnectindex].gm & (MODE_EOL | MODE_RESTART))
|
||||||
|
@ -368,7 +370,6 @@ bool GameTicker()
|
||||||
drawtime.Reset();
|
drawtime.Reset();
|
||||||
drawtime.Clock();
|
drawtime.Clock();
|
||||||
S_Update();
|
S_Update();
|
||||||
double const smoothRatio = playrunning() ? I_GetTimeFrac() * MaxSmoothRatio : MaxSmoothRatio;
|
|
||||||
displayrooms(screenpeek, smoothRatio);
|
displayrooms(screenpeek, smoothRatio);
|
||||||
displayrest(smoothRatio);
|
displayrest(smoothRatio);
|
||||||
drawtime.Unclock();
|
drawtime.Unclock();
|
||||||
|
|
|
@ -788,11 +788,11 @@ void GameTicker(void)
|
||||||
MoveTicker();
|
MoveTicker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
smoothratio = I_GetTimeFrac() * MaxSmoothRatio;
|
||||||
|
|
||||||
// Get input again to update q16ang/q16horiz.
|
// Get input again to update q16ang/q16horiz.
|
||||||
if (!PedanticMode)
|
if (!PedanticMode)
|
||||||
getinput(&loc, TRUE);
|
getinput(&loc, TRUE);
|
||||||
|
|
||||||
smoothratio = I_GetTimeFrac() * MaxSmoothRatio;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
drawscreen(Player + screenpeek, smoothratio);
|
drawscreen(Player + screenpeek, smoothratio);
|
||||||
|
|
Loading…
Reference in a new issue