Optimze Wad Lumps #217

Merged
alufolie91 merged 19 commits from optimizewadlumps into Saturn-Next 2026-03-13 18:21:51 +01:00
alufolie91 commented 2025-12-26 21:54:53 +01:00 (Migrated from github.com)

This completely refactors the old lump number cache to use a std::unordered_map, which massively speeds up Lump lookups by number, especially when many Addons are loaded.
This has been in Blankart for a while, and massively improved Performance on certain Servers there (2-4x times fps improvement !)
The folder start/end cache using aatrees also gets replaced with an unordered_map for simplicity and consitancy
Longname stuff was removed/commented out, since we cant make use of it, and it was basically unused, which also saves a little on memory

Replaced the unordered_map with Verstable https://github.com/JacksonAllan/Verstable
Reasoning is inside https://github.com/Indev450/SRB2Kart-Saturn/pull/217/commits/014a22e9336e4b5d34bdda2afbd61ca12de07c7a
Needs a bit of testing now but should work the same as before

~~This completely refactors the old lump number cache to use a std::unordered_map, which massively speeds up Lump lookups by number, especially when many Addons are loaded. This has been in Blankart for a while, and massively improved Performance on certain Servers there (2-4x times fps improvement !) The folder start/end cache using aatrees also gets replaced with an unordered_map for simplicity and consitancy Longname stuff was removed/commented out, since we cant make use of it, and it was basically unused, which also saves a little on memory~~ Replaced the unordered_map with Verstable https://github.com/JacksonAllan/Verstable Reasoning is inside https://github.com/Indev450/SRB2Kart-Saturn/pull/217/commits/014a22e9336e4b5d34bdda2afbd61ca12de07c7a Needs a bit of testing now but should work the same as before
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saturn/SRB2Kart-Saturn#217