From: havoc Date: Fri, 25 Jan 2008 08:53:00 +0000 (+0000) Subject: renamed cl_minfps_expbase to cl_minfps_logbase X-Git-Tag: xonotic-v0.1.0preview~2505 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb435e4ef6e11254410c775b8a362966a2c34d36;p=xonotic%2Fdarkplaces.git renamed cl_minfps_expbase to cl_minfps_logbase git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8007 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index 0534d333..983b8d9c 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -2094,7 +2094,7 @@ void SCR_UpdateLoadingScreen (qboolean clear) } extern cvar_t cl_minfps; -extern cvar_t cl_minfps_expbase; +extern cvar_t cl_minfps_logbase; extern cvar_t cl_minfps_fade; extern cvar_t cl_minfps_maxqualityreduction; static double cl_updatescreen_rendertime = 0; @@ -2244,7 +2244,7 @@ void CL_UpdateScreen(void) qglFlush(); cl_updatescreen_rendertime += ((Sys_DoubleTime() - rendertime1) - cl_updatescreen_rendertime) * bound(0.01, cl_minfps_fade.value, 1); if (cl_minfps.value > 0 && !cls.timedemo && (!cls.capturevideo.active || !cls.capturevideo.realtime)) - cl_updatescreen_qualityreduction = invpow(cl_minfps_expbase.value, cl_minfps.value * cl_updatescreen_rendertime); + cl_updatescreen_qualityreduction = invpow(cl_minfps_logbase.value, cl_minfps.value * cl_updatescreen_rendertime); else cl_updatescreen_qualityreduction = 0; cl_updatescreen_qualityreduction = bound(0, cl_updatescreen_qualityreduction, bound(0, cl_minfps_maxqualityreduction.value, 30)); diff --git a/host.c b/host.c index fac4fa46..6fd81f1f 100644 --- a/host.c +++ b/host.c @@ -60,9 +60,9 @@ cvar_t host_framerate = {0, "host_framerate","0", "locks frame timing to this va // shows time used by certain subsystems cvar_t host_speeds = {0, "host_speeds","0", "reports how much time is used in server/graphics/sound"}; cvar_t cl_minfps = {CVAR_SAVE, "cl_minfps", "40", "minimum fps target - while the rendering performance is below this, it will drift toward lower quality"}; -cvar_t cl_minfps_expbase = {CVAR_SAVE, "cl_minfps_expbase", "1.2", "base for log() function in calculating quality reduction, should be in the range 1.1 to 2.0"}; +cvar_t cl_minfps_logbase = {CVAR_SAVE, "cl_minfps_logbase", "1.2", "base for log() function in calculating quality reduction, should be in the range 1.1 to 2.0"}; cvar_t cl_minfps_fade = {CVAR_SAVE, "cl_minfps_fade", "0.2", "how fast the quality reduction adapts to varying framerate"}; -cvar_t cl_minfps_maxqualityreduction = {CVAR_SAVE, "cl_minfps_maxqualityreduction", "3", "how much particle quality can be reduced (as a power of 2) when framerate is staying below cl_minfps, 0 = no reduction, 1 = 50% quality, 2 = 25% quality, 3 = 12.5% quality, ..."}; +cvar_t cl_minfps_maxqualityreduction = {CVAR_SAVE, "cl_minfps_maxqualityreduction", "2", "how much particle quality can be reduced (as a power of 2) when framerate is staying below cl_minfps, 0 = no reduction, 1 = 50% quality, 2 = 25% quality, 3 = 12.5% quality, ..."}; cvar_t cl_maxfps = {CVAR_SAVE, "cl_maxfps", "1000000", "maximum fps cap, if game is running faster than this it will wait before running another frame (useful to make cpu time available to other programs)"}; cvar_t cl_maxidlefps = {CVAR_SAVE, "cl_maxidlefps", "20", "maximum fps cap when the game is not the active window (makes cpu time available to other programs"}; @@ -206,7 +206,7 @@ static void Host_InitLocal (void) Cvar_RegisterVariable (&host_framerate); Cvar_RegisterVariable (&host_speeds); Cvar_RegisterVariable (&cl_minfps); - Cvar_RegisterVariable (&cl_minfps_expbase); + Cvar_RegisterVariable (&cl_minfps_logbase); Cvar_RegisterVariable (&cl_minfps_fade); Cvar_RegisterVariable (&cl_minfps_maxqualityreduction); Cvar_RegisterVariable (&cl_maxfps);