diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index 2e5059c5..6e6129c5 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -334,6 +334,13 @@ it's `+set busywait 0` (setting the `busywait` cvar) and `-portable` * `1` - only errors and warnings * `2` - best-practices validation +* **vk_retexturing**: Apply retexturing: + * `0` - dont use retexturing logic and dont load the high resolution + textures, + * `1` - load the high resolution textures if pack is installed. + * `2` - try to load the pack or scale up all 8bit textures if pack is + not installed. + * **vk_strings**: Print some basic Vulkan/GPU information. * **vk_mem**: Print dynamic vertex/index/uniform/triangle fan buffer diff --git a/src/client/refresh/vk/vk_image.c b/src/client/refresh/vk/vk_image.c index 43a894b6..cb3414b8 100644 --- a/src/client/refresh/vk/vk_image.c +++ b/src/client/refresh/vk/vk_image.c @@ -917,7 +917,8 @@ static uint32_t Vk_Upload8 (byte *data, int width, int height, imagetype_t type, } } - if (vk_retexturing->value) + // optimize 8bit images only when we forced such logic + if (vk_retexturing->value >= 2) { SmoothColorImage(trans, s, s >> 7); } @@ -976,7 +977,8 @@ Vk_LoadPic(char *name, byte *pic, int width, int realwidth, if (bits == 8) { - if (vk_retexturing->value) + // resize 8bit images only when we forced such logic + if (vk_retexturing->value >= 2) { byte *image_converted = malloc(width * height * 4); scale2x(pic, image_converted, width, height); @@ -1098,7 +1100,7 @@ Vk_LoadImage(char *name, const char* namewe, const char *ext, imagetype_t type, { image_t *image = NULL; - // with retexturing and not skin + // with retexturing if (vk_retexturing->value) { image = Vk_LoadHiColorImage(name, namewe, ext, type, samplerType);