Left 4 Dead 2

Left 4 Dead 2

KRUGGER 36 - LMG [M60]
Allen Scott 12 Jan, 2023 @ 12:00am
Why is this mod so massive?
Hey, I noticed this mod that could easily be 40-50MB is for some reason 157MB. I took it upon myself to investigate this absurd file size. It would appear there are a few reasons this is the case.

1 - Duplicate files. beta_c_mag.vtf, and beta_c_mag_plastic.vtf serve the same purpose as far as I can tell, the model can only use one or the other, there doesn't need to be two of these. They each have their own specular and normal maps. Each of these individual VTF files are 2.67MB. Why would you have twice the files that you need?

2 - Unnecessary use of the BGR888 or BGRA8888 VTF format. This is as close to lossless as the VTF file type can get, which for this use case is totally unnecessary. The only times I ever use BGRA8888 or BGR888 is for normal maps constantly close to the player's face, and even then I only do it if the artifacting is readily visible. Any other use case is just inflating your file size for no good reason. Please use DXT1 for non-alpha channel textures, and DXT5 for alpha channel textures. This saves lots of space and will help prevent index buffer overflow crashes. There's a reason VALVe usually sticks to DXT5.

3 - Larger than needed texture resolutions. g36_bullets_d.vtf and its normals are 1024x1024. This texture is for the bullets visible in the magazine from what I can tell. This portion of the model is rather small and not usually visible to the player outside of reloads. Why would you need such a large resolution for something hardly visible to the player? This texture could easily be 512x512 or 256x256 without compromising the visual fidelity of the mod.

PLEASE try and save space when you can. Players who use lots of mods together will begin to experience index buffer overflows from having too many indices at once. The best way to avoid this crash is by not having mods that are unnecessarily large in their memory footprint.
< >
Showing 1-2 of 2 comments
Allen Scott 12 Jan, 2023 @ 12:08am 
DXT1 = 2.66MB
BGR888 = 16MB

That is a 501.504% increase in file size for next to no difference in quality for this use case.
PacoYoshi 22 Sep, 2024 @ 7:39pm 
I just already compressed this mod from BGR888 to DXT3, but i'm not gunna upload this.
< >
Showing 1-2 of 2 comments
Per page: 1530 50