Skip to content

Optionally preserve disjoint shadow refresh ranges - #10

Draft
FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
fix/disjoint-shadow-refresh
Draft

FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
fix/disjoint-shadow-refresh

Conversation

@FermentoCode

Copy link
Copy Markdown
Owner

Downstream backport of the disjoint range refresh from Trexies VIwork. Credit to DoubleD17, Aydan (aycow), and pablogonz12. Related work is in Marvisak #1818 and fxceless #591.

Set VICTORY_DISJOINT_REFRESH=1 to refresh only requested intervals in a shadow buffer. The default retains the previous behavior.

In a bounded D3D12 fixture on RTX 3090 Ti and WARP, the guarded test build copied 128 KiB of requested outer pages. The intervening page kept its previous contents until explicitly requested. The control refreshed all 192 KiB. The clean downstream port builds offline and passed its five focused CPU tests.

One guarded 1080p checkpoint comparison per mode, frames 1920–2039, measured 4.15 FPS / 293 ms p95 (control) and 4.11 FPS / 263 ms p95 (enabled). Mean draw counts and rendered surfaces differed. This comparison does not establish an FPS improvement or correct scene lighting. No title assets or captures are included.

Backport the per-shadow interval union integrated by DoubleD17 in Trexies
VIwork, based on Aydan (aycow)'s fix and pablogonz12's reproduction.
Enable with VICTORY_DISJOINT_REFRESH=1. Keep the existing bounding span
by default while downstream scene comparisons are evaluated.

Include interval union and legacy-mode CPU tests, plus an explicitly run
D3D12 readback fixture that verifies the untouched gap and later refresh.

Original fix: Marvisak/VIctory#1818
Upstream backport and tests: fxceless#591
Trexies integration: Trexies@3cd984d
Original report: Marvisak/VIctory#185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants