WIP: Resume idle texture sweeps at unvisited candidates #628
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!628
Loading…
Reference in a new issue
No description provided.
Delete branch "holoslicer/Darner:fix/resume-idle-texture-sweep"
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?
Reproduced the idle-sweep issue offline on Windows x64. Tested the fix on an RTX 3090 during matched short drives and fixed-camera holds. A sustained dense-traffic comparison is still open.
Contributor role (optional)
What it changes
On
c8258f95, a time-limited idle texture sweep advances its cursor over candidates it has yet to inspect. With pinned candidates at the front, the age-ordered sweep can repeatedly run out of time before reaching releasable copies. Address-order sweeps can skip the candidate at a deadline boundary.Remember the next unvisited candidate across bounded sweeps. Revalidate a pending address against the live registry and its last-use stamp before examining it. Existing idle, reference and mapping checks still decide whether a copy can be released.
How it was tested
55ece4c9d460fabc94e5144f5bb876ec9621caaa, based onc8258f95569c10fe75b5bfb785d3865b5deeefd9.RTX 3090 gameplay comparison
Compared the local #547/#551 release
7659f0cagainstbebc803, the same source plus only this PR's two commits. Both matched the original release compiler, feature and shader configurations. Each process received a private copy of the same v38 save, graphics profile and warm player cache. Both used Series X, hardware RT, 2560 × 1440, 1484 × 835 DLSS Balanced input, frame generation off, normal game speed and a 60 FPS cap. The two long sessions ran 35m 15s and 35m 11s. Both exited normally with zero gaps in the present stream.Start from the daylight storefront with the Ganado. Reverse from the parking wheel stop until the vehicle aligns between the two teal garage doors. Ordinary controller input and one-second landmark images confirmed the same segment. We scored complete successful intervals with visible displacement. Each pass covered about two seconds, so its 1% low is just one frame. Traffic and collisions prevented a repeatable high-speed route into a dense area.
For the two fresh rows we relaunched control with a pristine private copy and repeated the candidate's startup warm-up, parking maneuver and forward acceleration from the garage trailer to the pale apartment's exterior stairs and chimney. The control ran for 4m 17s. The matched starts were within one second of the candidate's elapsed time. Across all five rows, visually confirmed driving accounted for 10.869 seconds on control and 10.885 seconds on the candidate. Available system memory also differed during the fresh residential stretch, at 1,746 versus 376 MiB.
Pooling the raw inter-present intervals across those five windows yielded 17.76 / 17.09 average FPS, 11.03 / 7.90 FPS for the 1% low, 66.11 / 76.20 ms at p95, and 83.35 / 99.19 ms at p99. In total 193/193 control frames and 185/186 candidate frames exceeded 33.33 ms. The pooled 1% low uses two frames per build.
The same one-minute parked view at process age 27m 14s had 7,384 / 6,490 MB of tracked host texture copies, 10 / 7 median overdue emulator slots and 4.01 / 3.95 MB/s uploaded. Cleanup sweep p95 was 33.18 / 23.90 ms. The last two-minute parked view measured 6,727 / 6,445 MB of tracked host copies. Sweep p95 was 24.81 / 30.24 ms. Mean FPS there was 16.97 / 17.93, 1% low was 9.93 / 11.00, and frame p99 was 93.90 / 85.35 ms across 2,035 / 2,150 frames.
Process private memory grew by 10,312 / 10,606 MiB between the initial and final holds. Earlier travel and save-reload details differed. The PR sometimes reduced tracked texture copies and sweep times. This comparison did not establish lower overall process memory growth or a driving frame-time gain. The fixed-camera foliage disappearance described in #135 persisted on both builds. Keep this draft pending a longer matched traversal under streaming pressure.
Checklist
Checked for overlap
resource.rsinclude #50, #220, #335, #345, #416, #431, #443, #485, #561, #564, #565, #600 and #601.WIP: [pr-fix][memory] Resume idle texture sweeps at unvisited candidatesto WIP: Resume idle texture sweeps at unvisited candidatesView 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.