From: Rudolf Polzer Date: Sat, 25 Dec 2010 16:30:56 +0000 (+0100) Subject: proper S3TC size estimation X-Git-Tag: xonotic-v0.5.0~330^2~14^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64d25bdf2a831473630d3a0349ae51fa55fd6d87;p=xonotic%2Fxonotic-data.pk3dir.git proper S3TC size estimation --- diff --git a/qcsrc/menu/xonotic/slider_picmip.c b/qcsrc/menu/xonotic/slider_picmip.c index 7ffc626a8..af278dfd1 100644 --- a/qcsrc/menu/xonotic/slider_picmip.c +++ b/qcsrc/menu/xonotic/slider_picmip.c @@ -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) {