Repository navigation
Skip unused raw twins for cached list views - #3833
andrewpozdnakov7-jpg wants to merge 1 commit into
Conversation
|
The Windows CI job stopped at the first Clippy step with The focused WARP comparison and staged asset policy passed. The upstream loader warning is already covered by #3785 and #2019. |
|
Tested on the setup #3807 came from: RTX 3070 Ti 8 GB, driver 621.40, Windows 11,
So the count goes away, as expected. There is no measurable change in list-thread time or fps in this scene; the fps gap is within run-to-run noise here. Not checked: anything visual, since nobody was watching the screen, and the city, where the list threads do more work. |
|
@andrewpozdnakov7-jpg @Robotniq I reproduced the descriptor result on Windows with RTX 4070 Ti SUPER (617.14) and the 1M-view heap reporting raw_twins=false. I backported |
…ed list views), test kept on HEAD's uint_uav Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #3807.
What it changes
make_listedcreates a raw twin for each buffer view even when the shader translator is using the ordinary indices. On a capped view heap whereraw_views() == 0, that twin never reaches a slot the shader reads.Skip the scratch twin when the shader translator has no twin region. Use the translator's setting because the list cache can supply a record to more than one heap. The existing stride-table test now checks the cache entry's twin flag as well as the ordinary stride for the first copy and the cache hit.
How it was tested
HostHeap::make_listed. With twins disabled, main41adb551created two scratch twins and failed the new zero-count assertion. This patch created zero and passed. The ordinary descriptor strides matched in both runs.git diff --checkpassed.Checked for overlap
Hardware follow-up
Robotniq ran two five-minute passes from the same save on an RTX 3070 Ti 8 GB with a 1M-view heap and
raw_twins=false. The baseline reported a median 7,708 twins per frame. With6cf5ea7the counter never printed. All 80 descriptor-host tests passed on that system. The measured frame-rate difference was within run-to-run noise. Hardware reportakimfomin backported the same change onto a pinned test control and repeated the same route on an RTX 4070 Ti SUPER with a 1M-view heap. Their baseline reported about 25,000 scratch twins per frame near the end. The patched run reported none, and all 71 enabled descriptor-host tests passed. Both runs reached the route and exited normally. The single 15-second pair does not establish a frame-rate change. Ada hardware report
The Windows CI job is still blocked by the
unwind_copywarning reproduced on base41adb551. CI diagnosisPrepared with Codex.