mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +00:00
add r_norefresh support to sw and sw32 and rename the console side of the
cvar to get around the evil in customtf
This commit is contained in:
parent
37a5938b87
commit
1f9d75a7c7
3 changed files with 7 additions and 1 deletions
|
@ -373,7 +373,7 @@ R_Init_Cvars (void)
|
|||
"Net graph translucency");
|
||||
r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, NULL,
|
||||
"Draw box around net graph");
|
||||
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, NULL,
|
||||
r_norefresh = Cvar_Get ("r_norefresh_", "0", CVAR_NONE, NULL,
|
||||
"Set to 1 to disable display refresh");
|
||||
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, NULL, "Set to 1 to enable "
|
||||
"runtime visibility checking (SLOW)");
|
||||
|
|
|
@ -794,6 +794,9 @@ R_RenderView_ (void)
|
|||
{
|
||||
byte warpbuffer[WARP_WIDTH * WARP_HEIGHT];
|
||||
|
||||
if (r_norefresh->int_val)
|
||||
return;
|
||||
|
||||
r_warpbuffer = warpbuffer;
|
||||
|
||||
if (r_timegraph->int_val || r_speeds->int_val || r_dspeeds->int_val)
|
||||
|
|
|
@ -812,6 +812,9 @@ byte warpbuffer[WARP_WIDTH * WARP_HEIGHT * 4];
|
|||
static void
|
||||
R_RenderView_ (void)
|
||||
{
|
||||
if (r_norefresh->int_val)
|
||||
return;
|
||||
|
||||
r_warpbuffer = warpbuffer;
|
||||
|
||||
if (r_timegraph->int_val || r_speeds->int_val || r_dspeeds->int_val)
|
||||
|
|
Loading…
Reference in a new issue