summaryrefslogtreecommitdiff
path: root/src/cgame/cg_main.c
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-02 21:27:39 +0000
committerTony J. White <tjw@tjw.org>2007-03-02 21:27:39 +0000
commit947db08cf2a2ce2016d1bf2d13866cffb8f147f5 (patch)
tree086672c53cc89edc4cd5d526ea03189433435941 /src/cgame/cg_main.c
parentdd0264cd747c7aa6d2c5f9abc0d65a2741c225cd (diff)
* (bug 3043) adds cg_bounceParticles which defaults to 0 on all but the
highest built-in graphic setting. When set to 0, particles don't use bounce off anything and therefore their movement doesn't require trace calls. This gives a significant frame rate boost in many situations.
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r--src/cgame/cg_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 7c868b56..f5402537 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -209,6 +209,7 @@ vmCvar_t cg_wwSmoothTime;
vmCvar_t cg_wwFollow;
vmCvar_t cg_wwToggle;
vmCvar_t cg_depthSortParticles;
+vmCvar_t cg_bounceParticles;
vmCvar_t cg_consoleLatency;
vmCvar_t cg_lightFlare;
vmCvar_t cg_debugParticles;
@@ -325,6 +326,7 @@ static cvarTable_t cvarTable[ ] =
{ &cg_wwFollow, "cg_wwFollow", "1", CVAR_ARCHIVE|CVAR_USERINFO },
{ &cg_wwToggle, "cg_wwToggle", "1", CVAR_ARCHIVE|CVAR_USERINFO },
{ &cg_depthSortParticles, "cg_depthSortParticles", "1", CVAR_ARCHIVE },
+ { &cg_bounceParticles, "cg_bounceParticles", "0", CVAR_ARCHIVE },
{ &cg_consoleLatency, "cg_consoleLatency", "3000", CVAR_ARCHIVE },
{ &cg_lightFlare, "cg_lightFlare", "3", CVAR_ARCHIVE },
{ &cg_debugParticles, "cg_debugParticles", "0", CVAR_CHEAT },