Validate the inputs of the opt-in RAM throttle #147
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!147
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-147"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-27 04:16 UTC · original
TaynanGT:review/ram-throttle-inputs-96→main· +426 −1 · 3 files · 1 commits · draftCarries the standalone throttle from #96 with checked MiB conversion and bounded waits based on elapsed time. It rejects a configured wait that reaches the reported title watchdog interval.
Four targeted tests and graphics Clippy passed. The original standalone throttle reached the world in zero of six guarded loads on the tested 16 GB laptop. A new hardware run with the watchdog active is still needed.
@nidscode on GitHub · 2026-11-27 08:16 UTC · original
Here are the hardware runs with the watchdog on that this draft asks for, @TaynanGT. They're on the same 16 GB laptop (i7-13700H, RTX 3050 6 GB Laptop GPU, 15.7 GiB usable).
Build: current
main(791648b) with this PR's commit cherry-picked (local1cb7d3c). The one conflict was inshared_buffer, where main now splits create and map. I kept main's version and putram_gate(size)first.Settings:
-Machine laptop(the #145 preset) with-More @{VICTORY_LIST_POOL='0'; VICTORY_OUTPUT='1280x720'; VICTORY_RENDER_SCALE='0.75'}, Series S, windowed. No keep-alive: the title's watchdog is fully active. Each run is 240 s, with scripted Enter presses reaching the story load at 100–115 s. An outside guard stops the game below 400 MB free for 1 s; it didn't trigger in any of these runs.The shader cache was re-translated for
mainbefore these runs (main no longer setsVICTORY_WAVE_WIDE_ONLY). The first run after the update, with a mostly stale cache, is left out.main, no throttlemain, no throttlemain, no throttle ¹VICTORY_RAM_FLOOR_MB=600(wait 250, share 600, no submission wait)VICTORY_RAM_FRAME_WAIT_MS=300VICTORY_RAM_FRAME_WAIT_MS=300+0x23cf683, write to 0x0) 9 s after the world started¹ vt52 was meant as a run of this PR, but my wrapper started
main's build: the log has noRAM throttle online, so it counts as amainrun.What I read from this:
main), and free RAM was no better: it still fell to 46 and 0 MB while buffers waited.mainkeeps about 1 GB free on average in the world, so the throttle has less to do. The measured cost of the buffer waits is higher than their RAM benefit on this machine; the submission wait looks more useful, but two runs don't settle it.Logs:
nv-vt50…nv-vt56(game logs and 1 s memory samples), available locally if you'd like a specific line.🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-27 08:20 UTC · original
@nidscode Thanks for the watchdog-on runs and for catching vt52. With the list pool off, all three controls crossed world load. Buffer waits crossed twice at 1,059–1,150 ms per frame, compared with 548–881 ms in the controls. The two submission-wait runs split. I’m keeping the throttle experimental and recording the full setup in the laptop notes. I’m also adding the selected executable and its SHA-256 to the launch log so the next A/B can verify both binaries.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.