WIP: Sampled GPU timing, refresh profiling, native draw markers and binding/root/shader-source observation; per-list timing opt-in #599
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!599
Loading…
Reference in a new issue
No description provided.
Delete branch "deama/Darner:pr/6-gpu-diagnostics"
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?
Not run in the game on Darner. Ported from a local VIctory-NVIDIA branch (before the rename). The notes below describe that branch.
Contributor role (optional)
What it changes
Thirteen commits, mostly opt-in diagnostics:
Restore sampled GPU timing with weighted current-renderer reports
Make detailed GPU timing opt-in for ordinary builds
Profile every refresh flush and report PC-backed windows separately
Include submission-front work in refresh profiling
Measure argument clamp GPU cost with optional weighted sampling
Measure title barrier submissions with optional weighted GPU samples
Clarify timestamp limits and time the barrier-group fallback
Identify slow buffer and texture refresh updates with bounded diagnostics
Label native draw and dispatch ranges for external GPU profiling
Observe bounded prepared shader bindings and allocation properties
Avoid republishing unchanged descriptor metadata without skipping record validation
diagnostics: capture selected shader sources before pipeline exclusions
diagnostics: measure root layout changes before user-data transport changes
DARNER_CARD_METER_SAMPLE=N: per-pipeline timings sample one binding in N, chosen by hash, with inverse-probability weights and sub-microsecond time kept. Whole-list timings stay unsampled.Per-list detailed GPU timing becomes opt-in in ordinary builds (no per-list timestamp and resolve commands unless asked for). Diagnostics builds keep it on, and an explicit
0wins.DARNER_REFRESH_PROFILE: every refresh flush profiled, PC-backed windows reported separately, submission-front work included, and the eight slowest buffer and texture updates per path kept.DARNER_CLAMP_SAMPLE/_TIMESandDARNER_TITLE_BARRIER_SAMPLE/_TIMES: weighted GPU cost of argument clamps and title barriers, plus the barrier-group fallback.DARNER_GPU_MARKERS=1: native draw and dispatch ranges labelled ("Darner / dispatch / ...") for external GPU profilers (docs/gpu-markers.md).DARNER_BIND_PROFILE,DARNER_ROOT_PROFILEandDARNER_SHADER_CAPTURE: bounded observation of prepared bindings and allocation properties, root-layout changes, and the sources of selected shaders before pipeline exclusions.DARNER_METADATA_WRITE_CACHE(on by default): an unchanged stride or view-address word is not written to the metadata buffer again. Record validation still runs every time, and GPU_UPLOAD mappings are never read. Main's view-start rewrite count is kept.How it was tested
6ec982b1606ec982b160(this branch's head), Windows 10 22H2 with its built-in Direct3D 12 (no Shader Model 6.6), Rust 1.98.1:cargo clippy --workspace --all-targets --locked -- -D warnings: passedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passedcargo --config 'profile.test.package.darner-shader.opt-level=3' test --workspace --locked --no-fail-fast(the opt-level only speeds up darner-shader's exhaustive float tests): 66 failed, all of which fail on unmodifiedmain(c8258f9556) on this PC too (darner-shader tests that need Shader Model 6.6).maintoo, so its tests were run in batches that survive the abort and compared one by one withmain(main: 1658 pass, 8 fail, 139 need Shader Model 6.6, 81 ignored): no test that passes onmainfails here, none removed; 54 new tests: 19 ignored, 35 pass.cargo xtask policy: ok on the PR 8 head, which contains this branch.Checklist
main. No: a set of diagnostics plus two default changes, stacked on the PRs below.docs/asset-policy.md.Checked for overlap
WIP: [pr-diagnostics] Sampled GPU timing, refresh profiling, native draw markers and binding/root/shader-source observation; per-list timing opt-into WIP: Sampled GPU timing, refresh profiling, native draw markers and binding/root/shader-source observation; per-list timing opt-inView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
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.