Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ the mod's probe rejected `GC.GetAllocatedBytesForCurrentThread` (the method is i

## Verified in a real game: 0.1.3 with its defaults (2026-09-21)

Session `2026-09-21_23-13-11`: the same computer, game and Unity as the first recording, ten mods (BeaverBuddies MultiColony 1.4.0-beta2, Late Game Performance 0.4.23,
Session `2026-09-21_23-13-11`: the same computer, game and Unity as the first recording, ten mods (Timber Together 1.4.0-beta2, Late Game Performance 0.4.23,
MixedStorage 0.5.8, Hungry Pathing 0.1.0, Optimized Local Housing 1.0.1, Persistent Work Areas 0.1.3, The Tipsy Tail 0.2.7.0, Mod Settings, Harmony and this mod) and every
setting at its default (the `# config:` header line). 43.9 minutes: 236917 frames and 25511 ticks (76% of the frames at speed 7), a colony of 359 beavers and 11.7 thousand
entities, nine saves (eight queued, one on exit) and a normal exit (`session-end`, "the game was left"). The window was in the background for 81% of the frames, so this
Expand Down
6 changes: 3 additions & 3 deletions tools/test_perflog.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def test_turning_the_auto_watch_on_is_not_extra_time(self):
a, b = Synthetic(), Synthetic()
entity = "BeaverBuddies.DeterminismService+TickableEntityTickPatcher.Prefix(TickableEntity)"
try:
b.pipes.append(["watch", entity, "watching", "auto", "prefix on Timberborn.TickSystem.TickableEntity.Tick", "timbermods.BeaverBuddiesMultiColony"])
b.pipes.append(["watch", entity, "watching", "auto", "prefix on Timberborn.TickSystem.TickableEntity.Tick", "timbermods.TimberTogether"])
for w in range(1, 9):
for s in (a, b):
s.window()
Expand Down Expand Up @@ -822,7 +822,7 @@ def test_auto_watched_patch_methods_say_which_hot_method_they_are_on(self):
# (whose commas the CSV turns into ;).
entity = "BeaverBuddies.DeterminismService+TickableEntityTickPatcher.Prefix(TickableEntity)"
panel = "LateGamePerformance.UiThrottle.PanelPrefix(EntityPanel,Boolean)"
s.pipes.append(["watch", entity, "watching", "auto", "prefix on Timberborn.TickSystem.TickableEntity.Tick", "timbermods.BeaverBuddiesMultiColony"])
s.pipes.append(["watch", entity, "watching", "auto", "prefix on Timberborn.TickSystem.TickableEntity.Tick", "timbermods.TimberTogether"])
s.pipes.append(["watch", panel, "watching", "auto", "prefix on Timberborn.EntityPanelSystem.EntityPanel.UpdateSingleton (can replace it)",
"kyler.lategameperformance.UiThrottle"])
s.pipes.append(["watch", "Some.Mod.Method()", "watching"])
Expand All @@ -834,7 +834,7 @@ def test_auto_watched_patch_methods_say_which_hot_method_they_are_on(self):
text = self.report(s)
# A patch method is named by its class, not only as "Prefix", and says which hot method it is on and whose patch it is.
self.assertIn("TickableEntityTickPatcher.Prefix(TickableEntity)", text)
self.assertIn("auto watch: prefix on Timberborn.TickSystem.TickableEntity.Tick (timbermods.BeaverBuddiesMultiColony)", text)
self.assertIn("auto watch: prefix on Timberborn.TickSystem.TickableEntity.Tick (timbermods.TimberTogether)", text)
self.assertIn("auto watch: prefix on Timberborn.EntityPanelSystem.EntityPanel.UpdateSingleton (can replace it) (kyler.lategameperformance.UiThrottle)", text)
self.assertRegex(text, r"Some\.Mod\.Method\(\)")
self.assertEqual(2, text.count("auto watch: "), "a method the config's Watch named is not called an auto watch")
Expand Down
Loading