]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
added cl_minfps_qualitypower cvar to make particle quality drop more
[xonotic/darkplaces.git] / cl_screen.c
index 3c4ffd56e8fbb9ab6f78468ef0f9a24ad2cb0f6f..6124402ca8e07a47085af89db777c708de907e40 100644 (file)
@@ -2097,6 +2097,7 @@ extern cvar_t cl_minfps;
 extern cvar_t cl_minfps_fade;
 extern cvar_t cl_minfps_qualitymax;
 extern cvar_t cl_minfps_qualitymin;
+extern cvar_t cl_minfps_qualitypower;
 extern cvar_t cl_minfps_qualityscale;
 static double cl_updatescreen_rendertime = 0;
 static double cl_updatescreen_quality = 1;
@@ -2170,7 +2171,7 @@ void CL_UpdateScreen(void)
        qglClearColor(0,0,0,0);CHECKGLERROR
        R_ClearScreen(false);
        r_refdef.view.clear = false;
-       r_refdef.view.quality = bound(cl_minfps_qualitymin.value, cl_updatescreen_quality * cl_minfps_qualityscale.value, cl_minfps_qualitymax.value);
+       r_refdef.view.quality = bound(cl_minfps_qualitymin.value, pow(cl_updatescreen_quality, cl_minfps_qualitypower.value) * cl_minfps_qualityscale.value, cl_minfps_qualitymax.value);
 
        if(scr_stipple.integer)
        {