2
0
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:
Alibek Omarov 2024-10-30 19:25:48 +03:00
parent 371639f0dc
commit 2fe94bceb6

View File

@ -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 )