Slimmer Wiremod #2916
Replies: 2 comments
-
|
A separate addon for extra models and materials would be good, leaving only the basic stuff in the main addon |
Beta Was this translation helpful? Give feedback.
-
Small File CountA good point that was brought up was the amount of lua files wiremod has. Easiest solution appears to be making/using a bundler, at least for the sweps/stools/sents, that just puts them in a single file, and uses the dedicated register functions at runtime (https://wiki.facepunch.com/gmod/scripted_ents.Register and https://wiki.facepunch.com/gmod/weapons.Register). To deal with debug traces, maybe want to store the code as strings and use CompileString individually. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Wiremod is 52MB. It doesn't seem too bad, until you realize that only 4MB of that is the actual code... <10% of the download is what matters :\
The largest part is the materials, taking up 33MB, then models, taking up 15MB. (Sounds only take like a megabyte)
I doubt we can do anything automatically about optimizing the models, but that's fine since they take less space than the materials.
I think we could get wiremod much smaller if we cut down on textures and forced them to compressed formats (I think DXT1 would be best for file size?).
There's also a bunch of seemingly duplicate textures? Like
materials/models/cheeze/buttonsvsmaterials/models/cheeze/buttons2? I think models has this same issue with cheeze's stuff?Update
After a good amount of discussion on the discord, found a bunch of issues
Beta Was this translation helpful? Give feedback.
All reactions