mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
engine: limit framerate during connection to GoldSrc servers to exactly 31 FPS, like GoldSrc
This commit is contained in:
parent
371639f0dc
commit
2fe94bceb6
@ -591,6 +591,10 @@ static double Host_CalcFPS( void )
|
||||
if( !gl_vsync.value )
|
||||
fps = host_maxfps.value;
|
||||
}
|
||||
else if( !SV_Active() && CL_Protocol() == PROTO_GOLDSRC && cls.state != ca_disconnected && cls.state < ca_validate )
|
||||
{
|
||||
return 31.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( !gl_vsync.value )
|
||||
|
Loading…
Reference in New Issue
Block a user