Timberborn

Timberborn

Not enough ratings
Benchmark & (Late game) Optimizer [U7 ✅]
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
118.459 KB
23 Jul @ 11:38pm
1 Change Note ( view )

Subscribe to download
Benchmark & (Late game) Optimizer [U7 ✅]

In 3 collections by Luke ✞ Jesus Saves ✞
Luke's U7 Compatible Mods
94 items
Non-gameplay mods
26 items
Configurable Mods
24 items
Description
Find out exactly what's slowing your Timberborn game down and do something about it!This mod adds a powerful in-game benchmarking tool that measures which systems use the most processing power, especially helpful as your colony grows into late game. Instantly see a clear breakdown of where your CPU time is spent and identify performance bottlenecks.

Toggle Benchmark
1. Go to Mods (from the Main or Game menu) → Settings button next to the mod name.
2. Check Enable Benchmarking to activate the tool (uncheck when finished for best performance).
3. Restart the game after toggling this setting.

When enabled, loading a save will also add loading time statistics to your Player.log file (%appdata%\..\LocalLow\Mechanistry\Timberborn\Player.log), showing which processes are slowest (for information only, nothing we can do about it).

Benchmarking in-game
1. Set the desired game speed (e.g., x1 or x3) before opening.
2. Open the menu (Esc) and use the Benchmark button.
3. Choose how many real-life seconds to run the test.

Don't pause the game while benchmarking to avoid skewing results. When finished, a results dialog will appear (see screenshot), and a CSV file with detailed timings will be saved and its folder opened.

Optimizing

Back in the settings dialog, you can choose to throttle or delay specific services though this may have gameplay consequences.

For example, you can set ConstructionSite updates to run every 20 ticks instead of every tick (the game uses 0.6s per tick), so finished buildings may take up to 12 seconds to complete.

You can adjust these throttles in-game, though changes may take a short while to apply. After tweaking, you can also rerun the benchmark shortly after to see the effect of your optimizations.

Feedback needed!
I rarely get to the late game where performance issues are most noticeable. Thankfully some players have sent me their files so I can try this out but my laptop isn't the best for this (I can't even load some of the saves). So your feedback is very welcome! Feel free to share which settings you used as well.

If you need any support or feedback, feel free to contact me on Timberborn's official Discord ( https://discord.gg/timberborn, on #mod-users[discord.com] or this mod's[discord.com] channel), or @theapologist316
2 Comments
Luke ✞ Jesus Saves ✞  [author] 6 Sep @ 10:27pm 
Yes, it is in the roadmap (though I kinda left this one a bit behind due to many other projects). Not just pathing but behavior as well. I noticed this when benchmarking as well but there is no automatic way to do it but it has to be made manually one by one.
beansauce 6 Sep @ 10:11pm 
idk much about the pathing, but im still gonna ask this, could u make it where instead of just delaying the behavior manager u could stagger it, where it updates a certain percentage of ur population at a time and not just wait to update all of them at once cuz delaying behavior manager alone brings my fps on 1x from 7fps to 25fps but it drops back down to 7fps everytime it updates so lowering the amount updated at once would be really helpful but idk if it would be entirely possible

(also i am vry VRY late game so if u want me to send u my save for testing id have happy to, it is modded slightly so u will need the mods to run it)

(also also u probably already know this but for everyone else, the lag isnt hardware its 1000% the game)