Skip to content

Commit

Permalink
engine: limit framerate during connection to GoldSrc servers to exact…
Browse files Browse the repository at this point in the history
…ly 31 FPS, like GoldSrc
  • Loading branch information
a1batross committed Oct 30, 2024
1 parent 371639f commit 2fe94bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/common/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 2fe94bc

Please sign in to comment.