keep fresh left-open host lists across list::reset #645
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!645
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/fresh-open-reset"
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?
Note: This exact Darner revision has not yet been run end-to-end in the game on Darner main. The same fix has been running continuously in gameplay on our Windows 10 (i7-8700, RTX 3080 20 GiB) fork, and this Darner port was verified with a live RTX 3080 D3D12 unit test (via PR #631 on riley/all) and all workspace gates.
Contributor role (optional)
What it changes
crates/darner-gpu/src/list.rs,reset()callswith_state(this, |host, state| { host.reset(); state.reset(pipeline); }). Insidewith_state,host_list(this)callslist.title_call(), incrementingtitle_callsbeforeHostList::reset()checksstill_left_open(). Becauseleave_open()savedtitle_calls + 1beforereset(),still_left_open()always sees a mismatched count, closes the list, and falls back to full D3D12 allocator and command-list resets (FRESH_OPEN[1]stays 0 whileFRESH_OPEN[2]increments on every reset).DARNER_FRESH_OPEN=1(default-on) exists specifically to skip redundant D3D12Close(),ID3D12CommandAllocator::Reset(), andID3D12GraphicsCommandList::Reset()calls on freshly opened empty lists, saving driver CPU time every frame. On main, this bug silently defeatsDARNER_FRESH_OPEN100 percent of the time.with_state_on(host_list_held(this), this, "reset", ...)insidelist::resetso the reset itself does not count as a title recording call, allowingstill_left_open()to succeed on untouched lists while still closing and resetting lists that actually recorded title calls beforeReset(). Adds regression testlist::tests::reset_keeps_fresh_left_open_host_listcovering both the untouched positive case and the title-call negative control.How it was tested
2ceaa45(PR branch onc8258f9) andb97ea8e/96096db(merged intoriley/allwith PR #631 for live Win10 SM 6.6 testing)cargo clippy --workspace --all-targets --locked -- -D warnings: passed (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed (0 warnings)cargo xtask policyandcargo xtask policy --staged: passed (576 files ok)riley/allwithDARNER_TEST_AGILITY_DIRpointing at Agility SDK 1.620:cargo test -p darner-gpu --lib --locked list::tests::reset_keeps_fresh_left_open_host_list -- --exact --nocapturepassed (1 passed, 0 failed, 0.31s)DARNER_FRESH_OPEN=1path)2ceaa45and96096dbhost::host()unit tests require SM 6.6 so live GPU execution was verified onriley/allwith PR #631 active.Checklist
main.docs/asset-policy.md.Checked for overlap
riley/allto execute the live RTX 3080 GPU unit test on Windows 10)[pr-fix][rendering] keep fresh left-open host lists across list::resetto keep fresh left-open host lists across list::resetTest needed — commit
2ceaa457; what to check:crates/darner-gpu/src/list.rs,reset()callswith_state(this, |host, state| { host.reset(); state.reset(pipeline); }). Insidewith_state,host_list(this)callslist.title_call(), incrementingtitle_callsbeforeHostList::reset()checksstill_left_open(). Becauseleave_open()savedtitle_calls + 1beforereset(),still_left_open()always sees a mismatched count, closes the list, and falls back to full D3D12 allocator and command-list resets (FRESH_OPEN[1]stays 0 whileFRESH_OPEN[2]increments on every reset).DARNER_FRESH_OPEN=1(default-on) exists specifically to skip redundant D3D12Close(),ID3D12CommandAllocator::Reset(), andID3D12GraphicsCommandList::Reset()calls on freshly opened empty lists, saving driver CPU time every frame. On main, this bug silently defeatsDARNER_FRESH_OPEN100 percent of the time.with_state_on(host_list_held(this), this, "reset", ...)insidelist::resetso the reset itself does not count as a title recording call, allowing `still_left_opeEvidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.