[pr-performance] play: keep the card buffers' 64 KiB floor under 24 GB of RAM #483
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!483
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-483"
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?
@Indy2l on GitHub · 2026-11-30 22:40 UTC · original
Indy2l:launcher/keep-card-buffer-floor-16gb→main· +8 −6 · 1 files · 1 commits · openRelated: #474 (settings sized to the PC),
6265cec2What it changes
Under 24 GB of RAM,
machine_settingsinapps/vice-tay/src/play.rsunsetsVICE_TAY_CARD_BUFFERS_MIN_KB. The engine then uses its own 512 KiB floor (the log sayscard_buffers_min_kb=512), so every title buffer of 64 to 512 KiB stays in RAM, and the card reads it across the bus each frame. On a 16 GB PC this made the card the limit.This keeps
play's 64 KiB floor under 24 GB, like the small-memory profile already does since6265cec2(measured there on an RTX 4090: 6.2 fps with the floor, 2.2 without).docs/small-memory.mdalready saysplaykeeps it, so this makes the code match the doc. The other 16 GB settings (VICE_TAY_INPLACE=2,VICE_TAY_WINDOW_KB=64,VICE_TAY_WINDOW_TAILS=1) stay as they are. On a small card, what bounds the copies is still their total (VICE_TAY_CARD_BUFFERS_MB, 256 MB under 8 GB).How it was tested
--res 1080to1440 --dlss off(1920x1080 scene, 2560x1440 output), no frame generation, ray tracing off (--set VICE_TAY_BVH_BUILDER=). Diagnostics build ofmainat206e07b4, the same warm shader and pipeline cache for both runs, no F1-menu settings, the prison prologue from the same save to the crowded room, recorded with OBS.mainas it is, socard_buffers_min_kb=512): median 3.7 fps over 96 five-second windows in the world (92 under 5 fps). Card time a frame from the layer's card meter: median 250 ms; the submitting thread waited for the card a median 156 ms a frame. Card memory 8.4 GB own + 4.1 GB shared (median), peak system commit 46.3 GB, page-ins a median 4,400/s.--set VICE_TAY_CARD_BUFFERS_MIN_KB=64, the value this PR keeps; the layer's switches line differs from the run before in that one switch): median 6.7 fps over 52 windows (18 under 5 fps). Card time a frame: median 81 ms; the submitting thread waited a median 14 ms. Card memory 8.7 GB own + 4.3 GB shared, peak commit 46.6 GB, page-ins a median 12,000/s. The game closed normally.cargo test --locked -p vice-tay, with and without--all-features --test-threads=1: all pass (default: 93 unit tests and 11 more in the integration tests;--all-features: 94 and 11). The two tests on the 16 GB settings (each_pc_gets_its_tier,sixteen_gb_or_less_stays_on_series_x) now check that the floor is kept.cargo clippy --locked -p vice-tay --all-targets -- -D warnings, with and without--all-features: clean.cargo run --locked -p xtask -- policy: 676 files ok.git diff --check: clean.Not measured: Series S (it now runs its own build), other cards or RAM sizes, or ray tracing on. One run each way; the difference in card time (about 3x on the same stretch) is far outside what these runs vary by.
The cost is RAM traffic: page-ins went up from about 4,400 to 12,000 a second. With every 16 GB setting turned off as well (
INPLACE,WINDOW_KB,WINDOW_TAILSunset), the card filled up (10.5 GB) and closing the game made system commit jump by about 26 GB to the limit and froze the PC, so those settings matter on a 16 GB PC; this PR leaves them on.Has this been tried here before?
The floor's effect was measured in
6265cec2(kept in the small-memory profile); this is the same floor forplay's own 16 GB settings, which still dropped it. Two open pull requests touchplay.rs(#479, #428), neither of themmachine_settingsor this switch.AI-assisted: yes
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.