First draw waits for a registered buffer being materialized #409
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#409
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What you see
On the RTX 4060, the first host frame interval containing title draws stalls at startup. The first swap-chain Present was already accepted. The affected row was Present 3, with two draws and zero recorded pipeline wait in all four stock runs.
To reproduce, launch a Series S test profile with the warmed Darner cache described below. Keep eight thin translators and set
DARNER_FIND_INDEXto1/0/0/1on separate launches. CollectDARNER_BENCH_CSVand a six-intervalDARNER_TIMELINEfrom startup. Stop after the startup window. Match the first CSV row with draws to the pending recording in the timeline.mainrunshadow::lookup_bufferwait in the early traceBoth off runs shortened this startup interval. A following draw still waited in
lookup_buffer. A separate local diagnostics build on the same base measured the following phases (one capture per mode, for attribution):buffer_sidesbuffer_sidesThe reader's lock wait overlaps the critical draw's materialization span by about 107.5 and 115.2 ms respectively. The long span begins before the ordinary allocation helper. The exact pre-allocation operation remains open. This follows the first-draw symptom observed while testing worker counts in #37.
Before you post
RAY TRACING in F1
Off.
GPU and driver
NVIDIA GeForce RTX 4060 8 GB, driver 621.40.
CPU, RAM and Windows version
Ryzen 7 5800X (16 logical threads), 32 GB RAM, Windows 11 Pro build 26300.
Darner release or commit
f3840d73onmain. I built the stock and local diagnostics images with Rust 1.98.1 usingcargo build --locked --offline -j 2 --profile fast --features diagnostics -p darner, line-table symbols enabled and incremental compilation disabled.Settings
Series S, 1920×1080 output, DLSS Quality, DLSS FG 2×, RT and HDR off, half textures. Isolated test profiles. Each launch began with byte-identical warmed Darner caches.
DARNER_ADAPTER=RTX 4060,DARNER_THIN=1,DARNER_THIN_THREADS=8,DARNER_THIN_HEAP_ORDER=1,DARNER_THIN_UPLOAD_ORDER=1,DARNER_THIN_UPLOAD_WAIT_US=50000,DARNER_FIRST_START_PRELOAD=0,DARNER_LOG=info,DARNER_LONG_FRAMES=1,DARNER_BENCH_CSV, andDARNER_TIMELINE=0,6with a 4-second stall timeout.DARNER_FIND_INDEXis the stock A/B variable. The phase timings use extra local trace scopes enabled only on the separate diagnostic image.Log files attached
Sanitized excerpts are in the two tables. All four stock traces loaded the same mapped host pipeline library and reached Present 3, then the harness stopped each launch. Host Present-call timing was 0.692 / 1.679 / 0.839 / 0.729 ms. The measurements cover CPU-side scheduling and host presentation. Time of first visible screen content and sustained gameplay remain unmeasured in this test.
Are you working on a fix?
Investigating the operations that precede
buffer_sidesunder the registry write lock. I have a local trace probe and a repeatable startup test.[performance][startup][memory] First draw waits for a registered buffer being materializedto First draw waits for a registered buffer being materialized