Packed textures stay in the upload queue; a texture on the card is refreshed when the card is full
Two fixes for textures that shaders pick by index, both proven with a slot listing before they were made: - The title keeps only a texture's small levels and places the next texture in the address range of the absent large ones. Described at full size every neighbour overlapped, and each view written took the textures beside it out of the upload queue and made their host slots null (tens of thousands of slots a run). A newer view now makes an older one stale only when it starts within that one's first 4 KiB. VICTORY_STALE_TEXTURES=overlap: the old rule; =0: never. Unit tests on the span table alone. The first room is lit with its walls and the characters' textures in the first launch with it. - With the card at its limit, a texture that already has its host copy is uploaded again when the title changed its memory (it took no new card memory, and was refused all the same). VICTORY_REUPLOAD_WHEN_FULL=0: as before. Logging only, off unless asked for: both video memory groups and budget moves; card accounting (VICTORY_CARD_ACCOUNTING=1); the slots a listed draw's shaders read, with their state (VICTORY_LIST_SLOTS=); a trace for the missing first-room walls (VICTORY_WALLS_TRACE=1 or 2). A card test of what a bare command costs (ignored by default): cargo test -p victory-gpu --release -- --ignored bare_command_cost --nocapture Known: about 3 to 5 frames a second; more than half of the texture memory on the card is held for levels the title has not loaded yet (next). Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
c96b4f2b83
commit
310c6eb6c1
9 files changed
+1807
-32
No files matched your search
@@ -690,6 +690,11 @@ fn log_memory() {
|
||||
let card = crate::host::host()
|
||||
.and_then(|h| h.video_memory())
|
||||
.unwrap_or_default();
|
||||
// Everything the system says of the two memory groups, beside the
|
||||
// budget and use the lines below print.
|
||||
if let Some(h) = crate::host::host() {
|
||||
h.log_video_memory("with the memory line");
|
||||
}
|
||||
// What else holds memory: the map, on a thread of its own, with every
|
||||
// sixth line; and what the shader table and the pipeline library keep.
|
||||
static LINES: AtomicU64 = AtomicU64::new(0);
|
||||
|
||||
Reference in new issue
Block a user