GPU: batch sparse texture working-set queries and retain per-page fallback #2870
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2870
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2870"
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?
@ghptc on GitHub · 2026-11-29 18:24 UTC · original
ghptc:perf/sparse-texture-probe-20261129→main· +129 −29 · 1 files · 2 commits · merged 2026-11-30 14:12 UTCPort the 64 KiB sparse texture residency batching by Matheus from fxceless/victory-fork#177. The first commit retains the original author and sparse-range regression. A second commit shares page validation with the contiguous reader and retries individual page queries on a failed batch, preserving the resident-or-readable decision for each block. A failed batch cannot publish partially filled flags.
The Win64 control used real allocations, decommits and a private Proton Experimental prefix. It compared sparse and dense regions, unaligned ends, a range of 513 blocks and an injected failed batch. All byte counts agreed. In 100 scans of 64 resident blocks, working-set queries fell from 6,400 to 100 and median total time fell from 2.326 to 0.738 ms. For sparse blocks the same 4,800 fallback reads were needed, with 5.655 to 4.467 ms. A single block took 35 µs per 100 scans in both arms. These are CPU measurements of this branch of texture polling.
A separate ABBA Win64 workload sampled 24 sparse/dense procedural textures while software-rendering a perspective terrain. Resident byte counts selected the texture and mip. Four arms produced identical RGB for 160 camera states (93 distinct images). During motion, workload P50/P95 fell from 1.088/1.374 ms to 0.765/1.051 ms. Across both runs per variant the working-set call count fell from 366,516 to 10,496 with the same 107,472 fallback reads.