D3D12.X: the looks line splits "the rest" and shows the longest look #2134
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2144"
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?
Imported from ivall/xcl. Originally posted by ozimchuk on 2026-11-25T06:13:04Z.
Stacked on #1832 (@marquezinii); only the top commit,
f8eeef4, belongs here. It replaces this PR's earlier version, which added a secondXCL_ACTIVITYline for the same looks – I had missed #1832 when I opened it.#1832's
looks before submitsline gives the write-watch and the copies into sparse video memory, and leaves "the rest" as one number. On a retail title under Linux that rest was a large part of the look, so this splits it, and adds the longest look of the period: one slow look is a stall that the 2 s sum hides.(retail title, world load,
main06c9f55+ #1832 + this commit; Linux, NVIDIA (32-lane waves))What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: withXCL_ACTIVITY,refresh_onceandupload_alltime the parts of the rest – the view-source recheck,vram::before_execute, the streamed-texture recheck (#2029), choosing the uploads, and per batch the content hash (with its read), the detile and the submit (with its wait), plus the bytes uploaded;look_parts().crates/xcl/src/hle/d3d12x/sparse.rs:note_lookkeeps the longest look (take_longest_look);look_linetakes the parts and the longest look; what the parts do not cover is "other". The unit test covers the new fields and an idle period.crates/xcl/src/host.rs: passes both to the line.HANDOFF.md: the line's description.Without
XCL_ACTIVITYnothing is timed (oneOnceLockread per part).Tested
694cc67), release build forx86_64-pc-windows-gnu, Rust 1.100.0.cargo test -p xcl --lib --release -- --test-threads=4on this head: 1 186 passed, 11 failed, 26 ignored. 10 of them fail onmainaaa931bhere too (test data, DXIL validator and precision cases of this setup); the 11th,list_x::tests::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares, passes when run alone.d3d12x::sparseandd3d12x::title_texturesalone: 16 and 18 passed, 0 failed, includingthe_look_line_splits_the_time.XCL_ACTIVITY=1: the line above every 2 s, "other" 0–1 ms throughout. The run ends at ~82 s inxg::copy_fromasmaindoes here (#662; #684 fixes it).Not tested
maincrashes at it here without #684).AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_01H6JBZXaFw99FcnmUV1mPWj
AI-assisted.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:49:25Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
[PR #2144] D3D12.X: XCL_ACTIVITY shows the time submits spend in XCL firstto [PR #2144] D3D12.X: the looks line splits "the rest" and shows the longest lookImported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T08:15:20Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:28:48Z.
Triage (#1607) – head
f8eeef4Stacked on #1832:
fa2dca5is the same patch as #1832's commit, and onlyf8eeef4(the split of "the rest" and the longest look) belongs here. That is not a duplicate. No other open PR splits the looks line.Minor: the commit edits
HANDOFF.md. CONTRIBUTING asks feature PRs to point out a stale statement in the description, not to edit that file. The PR is a draft and conflicts with main.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.