]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a bug in the picmip memory estimation
authorRudolf Polzer <divverent@alientrap.org>
Sat, 8 Jan 2011 18:10:35 +0000 (19:10 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 8 Jan 2011 18:10:35 +0000 (19:10 +0100)
qcsrc/menu/xonotic/slider_picmip.c

index af278dfd1f776da754fb952689a7a262c47ec90f..cf1d9d20a7870c5e7d613aca8362faaee5531ad8 100644 (file)
@@ -26,8 +26,8 @@ float texmemsize(float s3tc)
 {
        return
        (
-                 2500 * pow(0.5, max(0, cvar("gl_picmip") + cvar("gl_picmip_other")))
-               + 1500 * pow(0.5, max(0, cvar("gl_picmip") + cvar("gl_picmip_world")))
+                 2500 * pow(0.25, max(0, cvar("gl_picmip") + cvar("gl_picmip_other")))
+               + 1500 * pow(0.25, max(0, cvar("gl_picmip") + cvar("gl_picmip_world")))
        ) * (s3tc && ((cvar("r_texture_dds_load") || cvar("gl_texturecompression")) ? 0.2 : 1.0)); // TC: normalmaps 50%, other 25%, few incompressible, guessing 40% as conservative average
 }
 void XonoticPicmipSlider_autofix(entity me)