A texture filled while the runtime remaps takes the pages that are there

With VICTORY_TEXTURE_NO_WAIT=1 a refresh that met the runtime remapping
title memory read the whole chain or nothing. A texture the title holds
only the smaller levels of is never all there, so nothing was read, and
the upload recorded before put the staging buffer's zeros over the
levels on the card. A staging buffer never filled now takes the pages
that are there; what was away for the moment of a change is read after
it, and a filling with less than was mapped makes the slots due again
(at most 8 times in a row). VICTORY_TEXTURE_FILL=0: as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 00:55:56 -06:00
1 parent ab71750898
commit 955c8b49d9
6 files changed
+282 -10

No files matched your search

+1
View File
@@ -1960,6 +1960,7 @@ impl State {
// Slots whose texture's memory the runtime mapped, unmapped or
// wrote since the last pass are due again.
host.texture_slots_remapped(frame);
host.texture_slots_short(frame);
// Levels on demand: the slots of textures whose first level with
// memory changed since the last pass are made again from it.
host.texture_views_remade();