feat: runtime-configurable VSync via config.toml

[display]
vsync = "mailbox"   # "vsync" | "mailbox" | "uncapped"

VsyncMode enum with custom Deserialize — accepts string values in toml.
apply_vsync_setting system reads GameConfig on every frame, updates
Window.present_mode immediately on change. No restart needed.
This commit is contained in:
2026-03-20 17:10:54 +00:00
parent 11d4b6a8a0
commit eac787be3f
3 changed files with 51 additions and 1 deletions
+3
View File
@@ -1,5 +1,8 @@
initial_chunk_radius = 15
[display]
vsync = "mailbox"
[spawn_counts]
dorfs = 5
pigs = 5