GPU: release resources the CPU is done with behind the queue #575

Open
github-bot wants to merge 3 commits from github-bot/gh-575 into main AGit
Owner

@⁠Len1k on GitHub · 2026-11-24 05:10 UTC · original
Len1k:gpu/release-behind-the-queue → main · +51 −4 · 3 files · 3 commits · open

Follow-up to what I read in #557 and #304: a host resource whose last CPU reference goes away is released immediately, while GPU work that may still read it can be queued.

Path What it released
HostHeap::keep (crates/victory-gpu/src/descriptor/host.rs:279) assigned the new resource over the slot's old one, dropping the previous ID3D12Resource during recording; make_at, make_null, mirror and constant_at all go through it
shadow::unregister (crates/victory-gpu/src/shadow.rs:391) removed the released title buffer's entry, dropping the Arc<Shadow> and with it Shadow::buffer

The comment on unregister said "lists that still hold its copy keep it alive", but Deferred (crates/victory-gpu/src/host.rs) holds copies, uploads, kept (named host objects), refreshed, textures: HashSet<usize> (texture ids), writes and budget_zeroed — no Arc<Shadow>. A list reads a copy by binding it, so a draw with no bindings has nothing to hold; an ExecuteIndirect takes its arguments from memory a shader wrote, so no list can name what it will read.

The console reads stale memory where the host page-faults. On the host that is a removed device: page fault at 0x…; inside freed ["texture 1024x1024 …"], with the stopped command an ExecuteIndirect kind 10 mesh list.

Change

release_late(ID3D12Resource) (host.rs) queues a resource instead of dropping it; Host::execute drains the queue once the fence's event has been waited for, which is the only point where a resource is provably past use. Both paths above now hand their resource to it. Nothing is released earlier than before — the free is only deferred — so this cannot break a read.

Tested

cargo test -p victory-gpu on main of this fork: 43 passed, 0 failed, 1 ignored.

test result: ok. 43 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out

Built with the x86_64-pc-windows-gnu target (rustc 1.98.1, llvm-mingw from tools/), because this machine has no MSVC toolchain. No title was run and no game files were used, so this is not evidence that #557 is fixed — it removes two frees that cannot be justified by anything the host tracks, and the page fault may still have another source (a pooled snapshot buffer, or a free I have not found).

Happy to shape it differently if the maintainer would rather keep the queue on Host instead of a static, or drain it per list rather than per submission.

AI-assisted (OpenCode).

**@⁠Len1k** on GitHub · 2026-11-24 05:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/575) `Len1k:gpu/release-behind-the-queue` → `main` · +51 −4 · 3 files · 3 commits · open Follow-up to what I read in #557 and #304: a host resource whose last CPU reference goes away is released *immediately*, while GPU work that may still read it can be queued. | Path | What it released | |---|---| | `HostHeap::keep` (`crates/victory-gpu/src/descriptor/host.rs:279`) | assigned the new resource over the slot's old one, dropping the previous `ID3D12Resource` during recording; `make_at`, `make_null`, `mirror` and `constant_at` all go through it | | `shadow::unregister` (`crates/victory-gpu/src/shadow.rs:391`) | removed the released title buffer's entry, dropping the `Arc<Shadow>` and with it `Shadow::buffer` | The comment on `unregister` said "lists that still hold its copy keep it alive", but `Deferred` (`crates/victory-gpu/src/host.rs`) holds `copies`, `uploads`, `kept` (named host objects), `refreshed`, `textures: HashSet<usize>` (texture ids), `writes` and `budget_zeroed` — no `Arc<Shadow>`. A list reads a copy by *binding* it, so a draw with no bindings has nothing to hold; an `ExecuteIndirect` takes its arguments from memory a shader wrote, so no list can name what it will read. The console reads stale memory where the host page-faults. On the host that is a removed device: `page fault at 0x…; inside freed ["texture 1024x1024 …"]`, with the stopped command an `ExecuteIndirect` kind 10 mesh list. ### Change `release_late(ID3D12Resource)` (`host.rs`) queues a resource instead of dropping it; `Host::execute` drains the queue once the fence's event has been waited for, which is the only point where a resource is provably past use. Both paths above now hand their resource to it. Nothing is released earlier than before — the free is only deferred — so this cannot break a read. ### Tested `cargo test -p victory-gpu` on `main` of this fork: **43 passed, 0 failed, 1 ignored**. ``` test result: ok. 43 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out ``` Built with the `x86_64-pc-windows-gnu` target (rustc 1.98.1, llvm-mingw from `tools/`), because this machine has no MSVC toolchain. No title was run and no game files were used, so **this is not evidence that #557 is fixed** — it removes two frees that cannot be justified by anything the host tracks, and the page fault may still have another source (a pooled snapshot buffer, or a free I have not found). Happy to shape it differently if the maintainer would rather keep the queue on `Host` instead of a static, or drain it per list rather than per submission. AI-assisted (OpenCode).
A host resource whose last CPU reference went away was released immediately,
while GPU work that may still read it could be queued. Two paths did that:

  * HostHeap::keep assigned the slot's new resource over the old one, dropping
    the previous ID3D12Resource during recording (make_at, make_null, mirror,
    constant_at all go through it).
  * shadow::unregister dropped a released title buffer's copy. Its comment
    claimed "lists that still hold its copy keep it alive", but Deferred holds
    texture ids and named host objects, never an Arc<Shadow>: a list reads a
    copy by binding it, and an execute-indirect draw takes its arguments from
    memory a shader wrote, so no list can name what it will read.

The console reads stale memory where the host page-faults, so on the host the
result is a removed device: "page fault at 0x...; inside freed [...]" with the
stopped command an ExecuteIndirect mesh list, as in #557 and #304.

Both paths now hand the resource to a queue drained by Host::execute once the
fence's event has been waited for, which is the only point where a resource is
provably past use. Nothing is released earlier than before, so this cannot
break a read; it only defers the free.

Tested with `cargo test -p victory-gpu`: 43 passed, 0 failed, 1 ignored. No
device is involved in those tests, and no title was run, so this is not
evidence that #557 is fixed — it removes two frees that cannot be justified,
and the fault may still have another source.

AI-assisted (OpenCode).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:08:57 +00:00
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 05:26 UTC · original

Tested this branch (head 69e44f5, merged locally with #336 since it is based on plain main) on the RX 9070 XT rig from #557: 24.2 s into the world, device removed, identical DRED signature — page fault inside freed ["texture 1024x1024 f98 flags 0x0 (type 34)"], stopped command an ExecuteIndirect kind-10 mesh list — with zero dynamic-slot warnings (#336 still doing its job). Same key-script, DRED on, diagnostics build.

So the merge looks right on its own merits (the two free paths are real; independent DRED naming agrees), but the world-entry fault survives it here, as predicted on #557 — the only build that ever avoided the signature was the never-free cap run (451 s, fault-free, to end credits): table and discussion in #557 . Current suspect on this rig: VA recycling after Release rather than object lifetime. Happy to re-run whenever you push.

AI-assisted (Hermes Agent).

**@⁠KingKaom** on GitHub · 2026-11-24 05:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7122952115) Tested this branch (head `69e44f5`, merged locally with #336 since it is based on plain main) on the RX 9070 XT rig from #557: **24.2 s into the world, device removed, identical DRED signature** — `page fault inside freed ["texture 1024x1024 f98 flags 0x0 (type 34)"]`, stopped command an ExecuteIndirect kind-10 mesh list — with zero dynamic-slot warnings (#336 still doing its job). Same key-script, DRED on, diagnostics build. So the merge looks right on its own merits (the two free paths are real; independent DRED naming agrees), but the world-entry fault survives it here, as predicted on #557 — the only build that ever avoided the signature was the never-free cap run (451 s, fault-free, to end credits): table and discussion in https://git.gtahub.st/github/Marvisak--VIctory/issues/557 . Current suspect on this rig: VA recycling after `Release` rather than object lifetime. Happy to re-run whenever you push. AI-assisted (Hermes Agent).
Author
Owner

@⁠Len1k on GitHub · 2026-11-24 05:46 UTC · original

Thanks for running it — that result is the one that decides how this PR should be read, and it argues against my premise rather than for it.

If every submission is waited for (Host::execute signals the fence and calls WaitForSingleObject(..., INFINITE), which the module's own shortcut note states), then at the moment this branch frees a resource the GPU is idle: there is no in-flight list of any kind that could still read it. So "freed while queued work may still read it" cannot be the mechanism, and the fault surviving here is consistent with that. The two paths this PR closes — HostHeap::keep overwriting a live slot's ID3D12Resource, and shadow::unregister dropping a copy while a shader-written argument could still name it — remain real defects on their own terms, because neither has anything to do with how long the work sits queued, but neither is the page fault you are reproducing.

That also makes your VA-recycling suspect the more interesting one: if the fault address is inside a freed texture whose object lifetime is already correct, the reuse of the VA range by a later allocation is what turns a stale reference into a fault, and no retention window or drain point can prevent it — which is exactly what the fence/retention table on #557 shows. Tracking list-lifetime (or never reusing a VA) would bound it; delaying release does not.

Where that leaves this PR: reviewed as resource-lifetime hygiene, not as a fix for #557. The body already says the tests are no evidence about the title, but your run is the first measurement that contradicts the "freed while in flight" reading, so it belongs in the thread. If #609's retirement queue lands, this branch's contents are mostly subsumed by it — I would rather that be said than have both merged blind.

Nothing to retest on my side until it changes; if you push another revision, I can rebuild and run cargo test -p victory-gpu again, though that says nothing about the fault.

AI-assisted.

**@⁠Len1k** on GitHub · 2026-11-24 05:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7123254954) Thanks for running it — that result is the one that decides how this PR should be read, and it argues against my premise rather than for it. If every submission is waited for (`Host::execute` signals the fence and calls `WaitForSingleObject(..., INFINITE)`, which the module's own `shortcut` note states), then at the moment this branch frees a resource the GPU is idle: there is no in-flight list of any kind that could still read it. So "freed while queued work may still read it" cannot be the mechanism, and the fault surviving here is consistent with that. The two paths this PR closes — `HostHeap::keep` overwriting a live slot's `ID3D12Resource`, and `shadow::unregister` dropping a copy while a shader-written argument could still name it — remain real defects on their own terms, because neither has anything to do with how long the work sits queued, but neither is the page fault you are reproducing. That also makes your VA-recycling suspect the more interesting one: if the fault address is inside a *freed* texture whose object lifetime is already correct, the reuse of the VA range by a later allocation is what turns a stale reference into a fault, and no retention window or drain point can prevent it — which is exactly what the fence/retention table on #557 shows. Tracking list-lifetime (or never reusing a VA) would bound it; delaying release does not. Where that leaves this PR: reviewed as resource-lifetime hygiene, not as a fix for #557. The body already says the tests are no evidence about the title, but your run is the first measurement that contradicts the "freed while in flight" reading, so it belongs in the thread. If #609's retirement queue lands, this branch's contents are mostly subsumed by it — I would rather that be said than have both merged blind. Nothing to retest on my side until it changes; if you push another revision, I can rebuild and run `cargo test -p victory-gpu` again, though that says nothing about the fault. *AI-assisted.*
Author
Owner

@⁠hashdev512 on GitHub · 2026-11-24 11:22 UTC · original

Test report from an RX 9070 XT (RDNA4), Ryzen 7 5700X3D, driver 32.0.32029.2010 (Adrenalin 26.11.2), Windows 11 build 26300. diag build with --features diagnostics, VICTORY_D3D12_DRED=1, Series X mode, package v1.0.2.1. Every figure below is one run unless it says otherwise, so treat the times as indicative. "Time" is from process start to device removal.

This PR merged locally (no conflicts, 50 victory-gpu tests pass):

Base Build Time How it ends
8e79c80 plain 2 min 21 s page fault inside freed texture 2048x2048 f71
8e79c80 + #575 3 min 59 s page fault at 0x457826000 inside freed ["texture 1024x1024 f99", "texture 1024x1024 f95"]; a list stopped at command 415 of 606 (op 42, mesh draws)
ffe310e plain 6 min 20 s page fault outside every allocation, in dispatch 12x1x1 [compute eeed82b877b44b5f] (command 4 of 11)
ffe310e + #575 6 min 27 s the same compute dispatch, fault at 0x1f00f0000

So on 8e79c80 the PR gets about 1.5 min further but still ends in a freed texture. On ffe310e I can't measure a difference: plain main no longer hit the freed-texture fault in my one run. The 12 commits between the two are all in the shader translator (per-lane descriptors, waterfall loops), none in resource lifetime, so I don't know whether they removed the trigger or the run was lucky.

What I measured on 8e79c80 before finding this PR, with local diagnostic switches at the same two sites you name plus Drop for Resource:

What is kept alive Time How it ends
nothing (plain) 2 min 21 s inside a freed texture
the HostTexture of a released title texture, for 4 more completed submissions 2 min 16 s device removed, no page fault reported
the same, for 300 more completed submissions 2 min 25 s inside freed texture 2048x1024 f98
the HostTexture of every released title texture, for the whole run 6 min 18 s the eeed82b877b44b5f compute dispatch
the resource a slot held before HostHeap::keep replaced it, for the whole run 5 min 56 s the same compute dispatch
the same, until 2 more submissions have completed 5 min 40 s the same compute dispatch
all three sites (slots, released textures, shadow::unregister), for the whole run 15 min 15 s the same compute dispatch

Two things follow for this PR, as far as single runs can show:

  • The site that matters on this card is HostHeap::keep, as you say. Delaying the texture's own drop does nothing, even by 300 submissions: the slot keeps the texture alive after the title releases it, and the free happens whenever that slot is rewritten, which can be much later.
  • Holding the replaced resource until two more submissions had completed did not show the freed-texture fault (5 min 40 s). This PR releases at the end of the execute in progress or the next one, and on the same commit it still faulted inside freed textures at 3 min 59 s. I have not found why one more submission would matter. execute is serialized, so the queue is idle when you drain. It may be run-to-run variance; I can rerun either build if that helps.

Whatever is kept, every run that survives the freed-texture fault ends at the same place: a dispatch 12x1x1 of compute eeed82b877b44b5f, right after dispatch 1x1x1 [compute 37e19ccb4f889f63], with a page fault outside every allocation. That is a separate bug this PR does not touch (also mentioned in #743).

The diagnostic switches are local only and not part of any PR. No game data here: hashes, addresses, sizes and timings from VIctory's own log.

AI-assisted (Claude Fable 5.2): runs launched and logs summarised by the model on my machine; times and DRED lines taken from the logs.

**@⁠hashdev512** on GitHub · 2026-11-24 11:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7130006830) Test report from an RX 9070 XT (RDNA4), Ryzen 7 5700X3D, driver 32.0.32029.2010 (Adrenalin 26.11.2), Windows 11 build 26300. `diag` build with `--features diagnostics`, `VICTORY_D3D12_DRED=1`, Series X mode, package v1.0.2.1. Every figure below is one run unless it says otherwise, so treat the times as indicative. "Time" is from process start to device removal. **This PR merged locally (no conflicts, 50 `victory-gpu` tests pass):** | Base | Build | Time | How it ends | |---|---|---|---| | `8e79c80` | plain | 2 min 21 s | page fault inside freed `texture 2048x2048 f71` | | `8e79c80` | **+ #575** | **3 min 59 s** | page fault at `0x457826000` inside freed `["texture 1024x1024 f99", "texture 1024x1024 f95"]`; a list stopped at command 415 of 606 (op 42, mesh draws) | | `ffe310e` | plain | 6 min 20 s | page fault outside every allocation, in `dispatch 12x1x1 [compute eeed82b877b44b5f]` (command 4 of 11) | | `ffe310e` | **+ #575** | 6 min 27 s | the same compute dispatch, fault at `0x1f00f0000` | So on `8e79c80` the PR gets about 1.5 min further but still ends in a freed texture. On `ffe310e` I can't measure a difference: plain `main` no longer hit the freed-texture fault in my one run. The 12 commits between the two are all in the shader translator (per-lane descriptors, waterfall loops), none in resource lifetime, so I don't know whether they removed the trigger or the run was lucky. **What I measured on `8e79c80` before finding this PR**, with local diagnostic switches at the same two sites you name plus `Drop for Resource`: | What is kept alive | Time | How it ends | |---|---|---| | nothing (plain) | 2 min 21 s | inside a freed texture | | the `HostTexture` of a released title texture, for 4 more completed submissions | 2 min 16 s | device removed, no page fault reported | | the same, for 300 more completed submissions | 2 min 25 s | inside freed `texture 2048x1024 f98` | | the `HostTexture` of every released title texture, for the whole run | 6 min 18 s | the `eeed82b877b44b5f` compute dispatch | | **the resource a slot held before `HostHeap::keep` replaced it, for the whole run** | 5 min 56 s | the same compute dispatch | | **the same, until 2 more submissions have completed** | 5 min 40 s | the same compute dispatch | | all three sites (slots, released textures, `shadow::unregister`), for the whole run | 15 min 15 s | the same compute dispatch | Two things follow for this PR, as far as single runs can show: - The site that matters on this card is `HostHeap::keep`, as you say. Delaying the texture's own drop does nothing, even by 300 submissions: the slot keeps the texture alive after the title releases it, and the free happens whenever that slot is rewritten, which can be much later. - Holding the replaced resource until **two more submissions had completed** did not show the freed-texture fault (5 min 40 s). This PR releases at the end of the `execute` in progress or the next one, and on the same commit it still faulted inside freed textures at 3 min 59 s. I have not found why one more submission would matter. `execute` is serialized, so the queue is idle when you drain. It may be run-to-run variance; I can rerun either build if that helps. Whatever is kept, every run that survives the freed-texture fault ends at the same place: a `dispatch 12x1x1` of compute `eeed82b877b44b5f`, right after `dispatch 1x1x1 [compute 37e19ccb4f889f63]`, with a page fault outside every allocation. That is a separate bug this PR does not touch (also mentioned in #743). The diagnostic switches are local only and not part of any PR. No game data here: hashes, addresses, sizes and timings from VIctory's own log. _AI-assisted (Claude Fable 5.2): runs launched and logs summarised by the model on my machine; times and DRED lines taken from the logs._
Author
Owner

@⁠KingKaom on GitHub · 2026-11-24 11:28 UTC · original

Three data points from my RX 9070 XT / 32 GB box that bear on your last two paragraphs — single runs each, same caveats you stated.

Plain main at ffe310e has NOT stopped faulting here. diag build, DEBUG + DRED: ~26 s in-world, page fault at 0x3990da000; inside freed ["texture 1024x1024 f98"], a list stopped at command 1177 of 1432 (op 42), device removed. So my single run on ffe310e ended inside the freed-texture class you stopped seeing — your 6 min 20 s may well have been luck rather than the translator merge, as you suspected.

No finite delay has removed the freed family on my box (all diag+DRED, single runs, seconds in-world before an identical inside freed signature):

  • this PR merged with #336: 24.2 s (my receipt above)
  • #609 (retire after 3 completed submissions) merged with #336: ~95 s
  • fence-tagged release once 8 further submissions had completed: 22.2 s
  • keep everything, never release at all: 451 s, first fault-free run, ended only at the VRAM ceiling

Your "replaced slot resource until 2 more submissions completed" (5 min 40 s, no freed fault) is the opposite result — two single runs can't separate luck from machine difference there. What my ladder does say: the only policy that reliably dodged the family here is never freeing at all, and my earlier free-path layering also found the slot-rewrite site the only free point whose removal doubled survival (47 s → 122 s) — both consistent with your conclusion that HostHeap::keep is the site that matters on this card.

Separately, in case it moots the delay designs: on my box #493's bounded root SRV views (stacked on #431) also removed the fault class entirely (~6.5 min, zero page faults, ending in a GPU timeout at ~1 fps instead) — posted on that PR. For completeness on the new endpoint: compute eeed82b877b44b5f was never dispatched in that fault-free run, so the #743 endpoint isn't yet this box's end of the road.

AI-assisted Hermes Agent.

**@⁠KingKaom** on GitHub · 2026-11-24 11:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7130146295) Three data points from my RX 9070 XT / 32 GB box that bear on your last two paragraphs — single runs each, same caveats you stated. **Plain `main` at `ffe310e` has NOT stopped faulting here.** `diag` build, `DEBUG` + `DRED`: ~26 s in-world, `page fault at 0x3990da000; inside freed ["texture 1024x1024 f98"]`, a list stopped at command 1177 of 1432 (op 42), device removed. So my single run on `ffe310e` ended inside the freed-texture class you stopped seeing — your 6 min 20 s may well have been luck rather than the translator merge, as you suspected. **No finite delay has removed the freed family on my box** (all `diag`+DRED, single runs, seconds in-world before an identical `inside freed` signature): - this PR merged with #336: 24.2 s (my receipt above) - #609 (retire after 3 completed submissions) merged with #336: ~95 s - fence-tagged release once 8 further submissions had completed: 22.2 s - keep everything, never release at all: 451 s, first fault-free run, ended only at the VRAM ceiling Your "replaced slot resource until 2 more submissions completed" (5 min 40 s, no freed fault) is the opposite result — two single runs can't separate luck from machine difference there. What my ladder does say: the only policy that reliably dodged the family here is never freeing at all, and my earlier free-path layering also found the slot-rewrite site the only free point whose removal doubled survival (47 s → 122 s) — both consistent with your conclusion that `HostHeap::keep` is the site that matters on this card. Separately, in case it moots the delay designs: on my box #493's bounded root SRV views (stacked on #431) also removed the fault class entirely (~6.5 min, zero page faults, ending in a GPU timeout at ~1 fps instead) — posted on that PR. For completeness on the new endpoint: compute `eeed82b877b44b5f` was never dispatched in that fault-free run, so the #743 endpoint isn't yet this box's end of the road. _AI-assisted Hermes Agent._
Author
Owner

@⁠Daniel333313131 on GitHub · 2026-11-24 20:29 UTC · original

Tested on AMD (RDNA3), where main faults on freed textures in the world. With this PR the freed-texture faults remain, in all three runs.

Setup: AMD Radeon RX 7900 XTX 24 GB, driver 32.0.32029.2010; Ryzen 7 9800X3D, 32 GB; Windows 11 10.0.26300. Diag build of this PR's head 69e44f5 merged alone onto main ffe310e. Each run used its own empty VICTORY_CACHE_DIR, VICTORY_D3D12_DRED=1, and VICTORY_KEYS set to Enter every 3 s from 8 s to 47 s. Each run was stopped after 180 s. The method and the main numbers are in #400.

run world ms/frame on the GPU device removed DRED
main 1 / 2 / 3 972 / 873 / 679 178 / 179 / 157 143 / 170 / 76 s freed texture ×2 runs, no resource named ×1
#575 1 883 270 65 s page fault inside freed texture 2048x2048 f98 (type 34)
#575 2 741 145 114 s page fault inside freed texture 2048x2048 f98, texture 2048x2048 f71 (type 34)
#575 3 725 196 76 s page fault inside freed texture 2048x2048 f71 (type 34)
  • Every run ends in a fault inside a freed texture, and all three were removed no later than main's median of 143 s.
  • Caveat: few world lines per run (2, 11 and 4), because removal came early. A fourth start exited after 1 s with no output and was repeated; it is not counted.

For comparison, on the same machine and with the same method:

  • #431 had no freed-resource fault in three runs: #431
  • #609 kept the fault in all three: #609

AI use: Claude Code (Claude Opus 5.5) merged and built the commits, ran the title, summarised the log lines and wrote this comment. The numbers come from the runs above.

**@⁠Daniel333313131** on GitHub · 2026-11-24 20:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7143632024) Tested on AMD (RDNA3), where `main` faults on freed textures in the world. With this PR the freed-texture faults remain, in all three runs. **Setup:** AMD Radeon RX 7900 XTX 24 GB, driver 32.0.32029.2010; Ryzen 7 9800X3D, 32 GB; Windows 11 10.0.26300. Diag build of this PR's head `69e44f5` merged alone onto `main` `ffe310e`. Each run used its own empty `VICTORY_CACHE_DIR`, `VICTORY_D3D12_DRED=1`, and `VICTORY_KEYS` set to Enter every 3 s from 8 s to 47 s. Each run was stopped after 180 s. The method and the `main` numbers are in https://git.gtahub.st/github/Marvisak--VIctory/issues/400. | | run | world ms/frame | on the GPU | device removed | DRED | |---|---|---|---|---|---| | `main` | 1 / 2 / 3 | 972 / 873 / 679 | 178 / 179 / 157 | 143 / 170 / 76 s | freed texture ×2 runs, no resource named ×1 | | **#575** | 1 | 883 | 270 | 65 s | page fault inside freed `texture 2048x2048 f98 (type 34)` | | **#575** | 2 | 741 | 145 | 114 s | page fault inside freed `texture 2048x2048 f98`, `texture 2048x2048 f71 (type 34)` | | **#575** | 3 | 725 | 196 | 76 s | page fault inside freed `texture 2048x2048 f71 (type 34)` | - Every run ends in a fault inside a freed texture, and all three were removed no later than `main`'s median of 143 s. - Caveat: few world lines per run (2, 11 and 4), because removal came early. A fourth start exited after 1 s with no output and was repeated; it is not counted. For comparison, on the same machine and with the same method: - #431 had no freed-resource fault in three runs: https://git.gtahub.st/github/Marvisak--VIctory/pulls/431 - #609 kept the fault in all three: https://git.gtahub.st/github/Marvisak--VIctory/pulls/609 **AI use:** Claude Code (Claude Opus 5.5) merged and built the commits, ran the title, summarised the log lines and wrote this comment. The numbers come from the runs above.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:27 UTC · original

Automated triage for the maintainers.

Needs rebase. This PR does not merge cleanly into current main (ac2525d). Conflicting files: crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/shadow.rs.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 00:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/575#issuecomment-7148523770) <!-- victory-triage v1 head=69e44f59cd9c6f47aa64af36301fadcfd4decae5 verdict=needs-rebase at=2026-11-25T00:13:20Z --> Automated triage for the maintainers. **Needs rebase.** This PR does not merge cleanly into current `main` (ac2525d). Conflicting files: `crates/victory-gpu/src/descriptor/host.rs`, `crates/victory-gpu/src/shadow.rs`. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/shadow.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/575/head:github-bot/gh-575'
git switch 'github-bot/gh-575'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'main'
git merge --squash 'github-bot/gh-575'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'main'
git merge 'github-bot/gh-575'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!575
No description provided.