KnossosNET / Knossos.NET

Repository for the Knossos.NET launcher, currently in development.
GNU General Public License v3.0
21 stars 10 forks source link

Load NebulaModCard images only when the card is visible #128

Closed Shivansps closed 6 months ago

Shivansps commented 6 months ago

This should save about 75 to 100mb of ram if you never open the nebula tab.

The idea is that the tile image should only be loaded into a bitmap for display when the modcard changes from hidden to visible for the first time, and if you never open the nebula tab this effectively avoids having all those images cached to ram, what right now is a good 75 to 100mb ram usage reduction, that will go away as soon as you click the nebula tab.

While this is general is a small change with good gains, maybe we should wait to after 0.2.0 to merge it. Opinions?

wookieejedi commented 6 months ago

Agreed