ProjectStarlight / StarlightRiver

Starlight River mod
https://discord.gg/snWQ3QE
GNU General Public License v3.0
144 stars 43 forks source link

Memory optimization #708

Closed ScalarVector1 closed 2 months ago

ScalarVector1 commented 2 months ago

Fixes 2 of the most dire memory consumers in the mod. Note, we really should move to caching any and all textures used for drawing as the string manipulation on Request is really memory hungry, ouch! Best thing is probably moving any instances of Request to be a static Asset in the file and then getting Asset.Value to draw dynamically. Probably automatable with a clever script (Get AI involved?)