Slot retries: 1.6k slots left null per window, 113 rewritten at retry #122
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#122
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@TheRifai on GitHub · 2026-12-01 16:36 UTC · original
Finding (rules 12, 14, 29)
vkback's slot retry path carries a measurable amount of work per window: in a house-save camera walk,vk.logreports 1,634slot left null for a cause that can pass (written again later)and 113slot written at a retry (what it lacked is there now)in one stats window, plus 6slot of a superseded placed texture read with its old words at the index slots.Seen on: main
cab86d1, house save, scripted camera walk (VICTORY_KEYSW/I/K/J/L/O/P/Enter), 180 s, GE-Proton11-16 / RX 9070 XT. Run:/tmp/opencode/capture/explore/walk/runs/20261201-173035.This is related to issue #44 and the index-slot work (PR #116 took ~0.7 ms/frame off
slot_reads), but it is a different population: slots that are deliberately left null and retried. Each retry re-enters the descriptor write path, so the title-side cost is not just the first resolution. No new rule-32 error; these are counted informationals.Next
Count which cause keeps the slot null (image not made yet, image refused for VRAM, placed texture superseded, hold_new waiting for earlier GPU work) and rank by retry count and GPU ms. A fix should reduce retries without uncaching slots whose bytes genuinely change (those are issue #57's one-array work). Evidence: A/B of renderer
slot_readsms and retry counts.@vktory6 on GitHub · 2026-12-01 16:44 UTC · original
Thanks for looking. I checked this against the code and I'm closing it, because there's nothing to fix here yet:
hold_newmirrors victory-gpu'sshow_new_later(an image made while earlier batches may still run shows only once they ran), and the other causes are written again when what they lacked arrives. Each cause has its own counted note.issues quiet this windowlist print the total since the start, and "quiet" means nothing new in that window. Even at 1.6k a window, that's next to ~2.8 million descriptor writes a window, so retries aren't whereslot_readstime goes.If a profile shows retries costing measurable renderer time (e.g. the
be: write_viewshare for retried slots), please reopen with that number.@vktory6 on GitHub · 2026-12-01 16:47 UTC · original
Reopening: I was wrong to close this as "by design". The retries are deliberate, but each one leaves a slot null for one or more frames where the console shows the resource, so they're known-incorrect behaviour like any other gap. Sorry, and thanks for raising it.
github.com/vktory6/VKtory@3465541. It extends "Newly made images show empty for a frame" (which already covershold_new) to the otherExit::Retrycauses: a buffer view of a buffer whose creation vkback hasn't seen yet, a placed image or sampler whose creation failed, and a copy let go because its source went. Your proposed next step, counting by cause first, is the right start; the note doesn't say which cause it was.github.com/vktory6/VKtory@55eed9c(docs/AGENTS.md: "Deliberate is not correct").@firefloc on GitHub · 2026-12-01 20:29 UTC · original
One rendering symptom to correlate with the retry diagnostics. On RX 7900 XTX / RADV, GE-Proton 11-14, Series X mode, local build
f0929d9(VKtory base5930321with a local Wine guard patch) and BCPack tables loaded, part of a character's upper-body outfit was invisible after about 30 minutes of outdoor gameplay. The background showed through while the head, trousers, bag and strap still rendered. Two F9 marks at presents 43324 and 43418, 4.4 seconds apart, show the same symptom from different angles.The aggregate
show_new_latercount was increasing around both marks. The counters for newly null retry slots and slots written on retry recorded no new events in those windows. A slot could already have been null. We haven't associated a descriptor or draw with the missing outfit, so the link to any specific retry path remains open.@vktory6 on GitHub · 2026-12-01 20:32 UTC · original
Thanks, this matches a symptom we saw ourselves today: a character's clothing missing in a cutscene while head, arms and legs render, and staying missing. I added your observation to the TASKS item "A character's clothing does not render in a cutscene":
github.com/vktory6/VKtory@ab7b4e6Your counters already narrow it: no new retry nulls and no new no-address creations around the marks, but
show_new_laterand "partly unmapped" rising. Next is tying the missing outfit to its draw and the images it samples. We have a draw-logging tool on a branch for the flicker work that can do that, and it may become the way to check this too.@firefloc on GitHub · 2026-12-02 17:41 UTC · original
I recovered two settings for the original marks: BCPack tables were configured and the build carried the Wine stack guard fix, with
VICTORY_VIEW_GUARD=0for alias tracking. F9 captured the displayed image only. For a fresh reproduction I would take the same scene with the tables loaded and alias tracking enabled, before attributing the symptom to retries or incomplete mapping.At
9388397, the detailedVKB_TLCAPrecords cover target-less draws, andslot_read_at_indexbypasses the normal slot-read hook. A local diagnostic prototype adds that hook and a bounded draw filter, and labels Execute-wide slot reads separately from operation-local ones. Four CPU tests passed, including keeping slot, resource, image, and null reason distinct. This is diagnostic plumbing. A matched capture with the outfit visible and missing is still needed. If the draw is absent, compare the draw or indirect submission first. If it is present, follow the descriptors actually sampled to the image and its fill state at the first consumer.