Noxys Trees

by _Noxy_

Makes the trees spread slowly but also die off with certain condition. Made to be performant and multiplayer friendly. Very configurable.

5 months ago
0.15 - 1.1
12.2K

b Fairly large saving overhead

4 years ago

Hey,
in a somewhat medium sized heavily modded base it seems like this mod increases autosave times fairly significantly:
7803.025 Info LuaGameScript.cpp:692: mod-NoRespawnGun state size: 26 bytes.
7803.025 Info LuaGameScript.cpp:692: mod-Noxys_Swimming state size: 36 bytes.
7807.162 Info LuaGameScript.cpp:692: mod-Noxys_Trees state size: 3627902 bytes.
Can that be optimized a bit?

4 years ago

Unfortunately this can't be avoided. I need to keep track of all the chunks in a list that I iterate through in steps. That list is pretty big if you have a big world. Getting rid of this list would mean a massive performance impact as that list would then need to be generated real time each time the mod does an operation.

If you have large areas on your map that aren't used you could opt to remove those chunks and thus reduce save time (it will take a full chunk cycle before Noxys Trees rebuilds the chunk list, which can take quite a while if you have that many).

New response