Quiet Cleanup

Updated 4 hours ago

Join our Discord: discord.gg/haSwxPa9GU to report bugs, request features or other mods, or give feedback.


← All mods in World and Performance

Quiet Cleanup

Switch: F1 → 0 - Sub-mods → Quiet Cleanup (off by default).

Off by default. In a comparison on one PC, at the same place and with the same memory in use, it ran just as often as the game's own cleanup and the worst freeze per cleanup was about twice as long (typically 320 ms against 142 ms). A player with another PC also got more lag and freezes with it. So it is only worth trying as an experiment.

Unity cleans up unused memory whenever it sees fit, also in the middle of a fight or while you run. This mod holds the automatic cleanup back and runs it at a quiet moment instead.

Features

  • Quiet moments: a menu or the map open, sitting or in bed, teleporting, or standing still for a few seconds. Never while a creature chases you (except while teleporting).
  • The inventory is no quiet moment, as the frame rate is lowest there already.
  • If no quiet moment comes, it runs anyway after 2000 MB of new memory, so memory use stays limited.
  • It uses the game's own step-by-step cleanup, so it can go on when you walk off.
  • Not active on PCs with under 12 GB of RAM or on a dedicated server: the game cleans up by itself there.

Performance

Reads the memory in use twice a second. Between cleanups the game uses more memory than usual, up to the limit you set.

Settings (F1)

In F1 these are under Quiet Cleanup - ..., below the switches.

General

Setting Default What it does
Clean up at a quiet moment after (MB) 300 New memory in use since the last cleanup before a quiet moment is used for the next one. (range 50 to 2000)
Clean up anyway after (MB) 2000 New memory in use since the last cleanup at which it runs even if no quiet moment came. (range 500 to 8000)
Standing still counts after (s) 3 Standing still this long (with no creature chasing you) counts as a quiet moment. (range 1 to 30)