diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-26 00:46:03 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-26 01:22:14 +0100 |
| commit | 0ebd4286ea80b5de20dbf7adf7bf6b970c7492df (patch) | |
| tree | 351ecd034823d3274e316d056cd570da3e9c3518 /runtime/src/main.cpp | |
| parent | 33bd07cf86bb42236635c27341359b3fe841d1d5 (diff) | |
d3d12: a slot-133 shadow keeps the GPU's writes where the title's bytes did not change (LEONIDA_SHADOW_KEEP)
ShadowPages copies pages that carry no sign of a title write (aliased,
unguarded, reopened with their 64 KiB block, write-watched or pinned) at
every refresh, and that copy overwrote what a shader had stored in the
shadow with the title's unchanged bytes. A value a compute program writes
for the next frame then read back as the title's old bytes every other
frame.
Each tracker now keeps a 64-bit sum per 256-byte piece of the bytes it
copied last (runtime/src/shadow_keep.h) and copies a piece only when the
title's bytes differ. Zeroed pages forget their sums. LEONIDA_SHADOW_KEEP=0
copies every job whole, as before. New CPU-only test shadow_keep.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwRYcpySx4P4ncQ3wD5
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions