Addon size reduction: asset dedupe, re-encode, and dx80/sw model variant removal - #322
Closed
KemGus wants to merge 6 commits into
Closed
Addon size reduction: asset dedupe, re-encode, and dx80/sw model variant removal#322KemGus wants to merge 6 commits into
KemGus wants to merge 6 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ience Source plays 3D-positioned sounds mono, so the stereo downmix is inaudible in game. Engine/vehicle/ambience directories additionally drop to 22.05kHz; gunfire, cracks, ricochets and penetration sounds keep their original sample rate for transient sharpness. Loop cue points are preserved with offsets rescaled to the new sample rate. sound/ shrinks from 683MB to 364MB with no path or format changes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 duplicate texture files removed (31.6MB); the referencing VMTs now share the surviving copy. No visual change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Uncompressed BGRA/RGBA textures are re-encoded as DXT1 (opaque) or DXT5 (alpha/normal maps), and 2048x2048 textures are downscaled to 1024. Flags (clamp, normal, nomip, etc.) are carried over; animated and envmap textures are left untouched. materials/ shrinks from 578MB to 321MB. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Overlapping re-encoded assets take the texture-downsizing versions; they are smaller on 152 of the 176 files both branches touched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacks on top of #321.
Cuts the addon from ~1.44 GB to ~0.89 GB on top of
texture-downsizing(−548 MB).dx80/swmodel variants; GMod only loadsdx90texture-downsizingis merged in. 176 assets were re-encoded by both branches; those conflicts take thetexture-downsizingversions, which are smaller on 152 of the 176.Description to be expanded.