mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +00:00
Fix slowmo issue caused by framerates lower than 72 with network independance.
This commit is contained in:
parent
b1c679f772
commit
b2198414fe
1 changed files with 4 additions and 2 deletions
|
@ -807,15 +807,17 @@ void _Host_Frame (double time)
|
||||||
if (accumtime >= host_netinterval)
|
if (accumtime >= host_netinterval)
|
||||||
{
|
{
|
||||||
float realframetime = host_frametime;
|
float realframetime = host_frametime;
|
||||||
accumtime -= host_netinterval;
|
|
||||||
if (host_netinterval)
|
if (host_netinterval)
|
||||||
{
|
{
|
||||||
host_frametime = host_netinterval;
|
host_frametime = q_max(accumtime, host_netinterval);
|
||||||
|
accumtime -= host_frametime;
|
||||||
if (host_timescale.value > 0)
|
if (host_timescale.value > 0)
|
||||||
host_frametime *= host_timescale.value;
|
host_frametime *= host_timescale.value;
|
||||||
else if (host_framerate.value)
|
else if (host_framerate.value)
|
||||||
host_frametime = host_framerate.value;
|
host_frametime = host_framerate.value;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
accumtime -= host_netinterval;
|
||||||
CL_SendCmd ();
|
CL_SendCmd ();
|
||||||
if (sv.active)
|
if (sv.active)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue