mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- use the common interpolation function for Blood.
This keeps the main calculation for time difference in one place.
This commit is contained in:
parent
893686709b
commit
9caf1ead91
1 changed files with 3 additions and 5 deletions
|
@ -3094,12 +3094,10 @@ void viewDrawScreen(bool sceneonly)
|
|||
lastUpdate = totalclock;
|
||||
if (!paused && (!M_Active() || gGameOptions.nGameType != 0))
|
||||
{
|
||||
gInterpolate = ((totalclock-gNetFifoClock)+4).toScale16()/4;
|
||||
}
|
||||
if (gInterpolate < 0 || gInterpolate > 65536)
|
||||
{
|
||||
gInterpolate = ClipRange(gInterpolate, 0, 65536);
|
||||
gInterpolate = CalcSmoothRatio(totalclock, gNetFifoClock - 4, 30);
|
||||
}
|
||||
else gInterpolate = 65536;
|
||||
|
||||
if (cl_interpolate)
|
||||
{
|
||||
CalcInterpolations();
|
||||
|
|
Loading…
Reference in a new issue