Skip to content

Commit

Permalink
activate renderer/network isolation with host_maxfps >= 73 (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4reporting authored Feb 4, 2025
1 parent b86bf56 commit ecb7c9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Quake/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jmp_buf host_abortserver;
jmp_buf screen_error;

byte *host_colormap;
float host_netinterval = 1.0 / MAX_PHYSICS_FREQ;
float host_netinterval = 1.0 / HOST_NETITERVAL_FREQ;
cvar_t host_framerate = {"host_framerate", "0", CVAR_NONE}; // set for slow motion
cvar_t host_speeds = {"host_speeds", "0", CVAR_NONE}; // set for running times
cvar_t host_maxfps = {"host_maxfps", "200", CVAR_ARCHIVE}; // johnfitz
Expand Down Expand Up @@ -135,7 +135,7 @@ static void Max_Fps_f (cvar_t *var)
{
if (!host_netinterval)
Con_Printf ("Using renderer/network isolation.\n");
host_netinterval = 1.0 / MAX_PHYSICS_FREQ;
host_netinterval = 1.0 / HOST_NETITERVAL_FREQ;
}
else
{
Expand Down
4 changes: 3 additions & 1 deletion Quake/quakedef.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#define DIST_EPSILON (0.03125) // 1/32 epsilon to keep floating point happy (moved from world.c)

#define MAX_PHYSICS_FREQ (71.9990) // Physics beyond 72Hz is broken, use a slightly lower value to overcome some bugs
#define MAX_PHYSICS_FREQ (72.0) // don't modify! Has to be 72.0

#define HOST_NETITERVAL_FREQ (71.9990) // Physics beyond 72Hz is broken, use a slightly lower value for host_netinterval to overcome some bugs

#define MAX_MSGLEN 64000 // max length of a reliable message //ericw -- was 32000
#define MAX_DATAGRAM 64000 // max length of unreliable message //johnfitz -- was 1024
Expand Down

0 comments on commit ecb7c9d

Please sign in to comment.