prune Guards::opened with 2x hysteresis instead of abrupt clear #627
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!627
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/guard-hysteresis"
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?
Not yet run in-game on this Darner branch (89 watch unit tests run on this revision; previously verified on RTX 3080 / i7-8700 in a downstream fork).
What it changes
When Guards::opened reached 8,192 entries (const MANY = 1 shl 13), opened_at ran a full retain scan calling Instant::elapsed() per entry under the global GUARDS mutex, and if 8,192 entries were still live within 50 ms it abruptly called self.opened.clear(), dropping all active rest windows at once. If 8,191 entries survived, the very next fault immediately hit 8,192 again and repeated the full O(8192) scan on every fault.
This change:
How it was tested
e64ed2c(based onc8258f9)Checklist
Checked for overlap
[pr-performance][memory] prune Guards::opened with 2x hysteresis instead of abrupt clearto prune Guards::opened with 2x hysteresis instead of abrupt clearTest needed — commit
e64ed2c2; what to check:When Guards::opened reached 8,192 entries (const MANY = 1 shl 13), opened_at ran a full retain scan calling Instant::elapsed() per entry under the global GUARDS mutex, and if 8,192 entries were still live within 50 ms it abruptly called self.opened.clear(), dropping all active rest windows at once. If 8,191 entries survived, the very next fault immediately hit 8,192 again and repeated the full O(8192) scan on every fault.
This change:
Evidence 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.