7 me.configureXonoticPicmipSlider(me);
12 me.configureXonoticTextSlider(me,
"gl_picmip",
13 _(
"Change the sharpness of the textures. Lowering it will effectively reduce texture memory usage, but make the textures appear very blurry."));
21 2500 * (0.25 **
max(0,
cvar(
"gl_picmip") +
cvar(
"gl_picmip_other")))
22 + 1500 * (0.25 **
max(0,
cvar(
"gl_picmip") +
cvar(
"gl_picmip_world")))
23 ) * ((s3tc && (
cvar(
"r_texture_dds_load") ||
cvar(
"gl_texturecompression"))) ? 0.2 : 1.0);
27 float max_hard, max_soft;
28 if(
cvar(
"menu_picmip_bypass"))
30 max_hard =
cvar(
"sys_memsize_virtual");
31 max_soft =
cvar(
"sys_memsize_physical");
34 while(me.value > 0 &&
texmemsize(me.have_s3tc) > max_hard)
35 me.setValue(me, me.value - 1);
void XonoticPicmipSlider_autofix(entity me)
entity makeXonoticPicmipSlider()
float texmemsize(float s3tc)
void XonoticPicmipSlider_configureXonoticPicmipSlider(entity me)
void XonoticPicmipSlider_draw(entity me)