D3D12.X: the looks line splits "the rest" and shows the longest look #2144
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2144
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ozimchuk on GitHub · 2026-11-25 06:13 UTC · original
ozimchuk:activity-submit-work→main· +159 −6 · 4 files · 2 commits · draftStacked 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.
@DavidM1911 on GitHub · 2026-11-25 06:49 UTC · original
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!
@DavidM1911 on GitHub · 2026-11-26 08:15 UTC · original
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
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.