]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
proper S3TC size estimation
authorRudolf Polzer <divverent@alientrap.org>
Sat, 25 Dec 2010 16:30:56 +0000 (17:30 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 25 Dec 2010 16:30:56 +0000 (17:30 +0100)
qcsrc/menu/xonotic/slider_picmip.c

index 7ffc626a8b5ea544d5c16922e95bb1001f8db231..af278dfd1f776da754fb952689a7a262c47ec90f 100644 (file)
@@ -28,7 +28,7 @@ float texmemsize(float s3tc)
        (
                  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")))
-       ) * (s3tc && ((cvar("r_texture_dds_load") || cvar("gl_texturecompression")) ? 0.4 : 1.0)); // TC: normalmaps 50%, other 25%, few incompressible, guessing 40% as conservative average
+       ) * (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)
 {