GPU/VRAM: transient texture allocation failures can permanently suppress resource creation and bindless retries #256

Open
opened 2026-11-26 13:26:02 +00:00 by github-bot · 0 comments
Owner

@⁠FunWithFlagsDev on GitHub · 2026-11-26 13:24 UTC · original

<html>

Summary

While investigating memory residency and recovery on NVIDIA GPUs with limited VRAM, I identified a potential texture recovery defect involving three interacting mechanisms:

  • Permanent resource refusal after a transient allocation failure.

  • Premature completion of a pending bindless texture request.

  • Descriptor caching that may retain a null descriptor as an already prepared view.

A temporary E_OUTOFMEMORY failure can permanently prevent the same live resource from obtaining its host texture, even after memory becomes available again.

This appears complementary to the ongoing VRAM eviction, memory trimming and mip-clamping work. Preventing memory exhaustion is important, but recovering correctly after an allocation failure is a separate correctness requirement.

The attached archive contains a source audit, an executable synthetic differential model, regression tests and a proposed native fault-injection test plan.

1. Affected revision

Repository: avatarmanz/VIctory-7900XTX

Commit:

c9c932cbcc38defd8f1683d62dd298187f565031

Affected components:

  • crates/victory-gpu/src/resource.rs

  • crates/victory-gpu/src/draw.rs

  • crates/victory-gpu/src/residency.rs

  • crates/victory-gpu/src/descriptor.rs

  • crates/victory-gpu/src/descriptor/host.rs

2. Permanent refusal after temporary allocation failure

resource.rs:1229–1230

/// The host refused to make it: not tried again.
refused: std::sync::atomic::AtomicBool,

The creation path checks this flag before making a host texture:

resource.rs:1562–1572

if made.is_none() {
    if !make || r.host.refused.load(Relaxed) {
        return None;
    }

However, the final creation failure sets the same flag regardless of the reason:

resource.rs:1635–1643

let Some(texture) = texture else {
    r.host.refused.store(true, Relaxed);
    return None;
};

At this point, the caller cannot distinguish between:

  • An invalid or unsupported resource description.

  • A temporary memory allocation failure.

  • A failed residency operation.

  • A device failure.

The creation helper receives an HRESULT from D3D12, but ultimately returns an Option<ID3D12Resource>.

See resource.rs:2550–2605.

Consequently, a transient failure may be converted into a permanent refusal for the lifetime of that guest resource.

3. Existing memory recovery does not clear this state

The residency module already recognizes E_OUTOFMEMORY and establishes a temporary upload backoff:

residency.rs:38–43

pub(crate) fn allocation_error(error: &windows::core::Error) {
    if error.code() == windows::Win32::Foundation::E_OUTOFMEMORY {
        RETRY_UPLOAD_AT.fetch_max(
            crate::host::coarse_ms().saturating_add(500),
            Ordering::Relaxed
        );
    }
}

This establishes a 500 ms retry delay for uploads.

However, when that delay expires, the resource's permanent refused flag remains set.

A possible sequence is therefore:

Texture A is requested
Host allocation returns E_OUTOFMEMORY
Global upload backoff begins
Texture A is permanently marked refused

Other resources are evicted
Available memory increases
Global upload backoff expires

Texture A is requested again
The permanent refusal prevents another allocation attempt

The same live resource remains unavailable even though the original allocation constraint may no longer exist.

There is also a related distinction in the residency failure path: an error from resident() or mapped() clears the newly created texture but does not call the same allocation_error hook.

4. Pending bindless texture requests may be lost

Removing the permanent refusal alone would not necessarily recover textures accessed through bindless descriptors.

In the texture preparation path:

draw.rs:2554–2594

let texture = crate::resource::host_resource(resource);
let title_fills =
texture.is_some_and(crate::texture::title_written);

if !title_fills {
at_once();
host.texture_slot_done(index, write, None);
continue;
}

When host_resource() returns None because creation failed, title_fills becomes false.

This potentially conflates two different conditions:

  • A successfully created resource that does not require a title-memory upload.

  • A resource that could not be created and may need another attempt.

For an eligible title-filled texture reaching this branch, the pending request can be marked complete despite the failed allocation.

The existing staging failure protection appears later in the function:

draw.rs:2653–2664

That protection is not reached when the earlier branch completes the request.

The queue's completion operation removes a matching write generation:

descriptor/host.rs:1148–1161

The existing later() mechanism already provides a bounded frame-based retry path that may be suitable for recovery.

5. Descriptor caching introduces another recovery requirement

The descriptor mirroring path may record a descriptor key as prepared even when the actual resource could not be created and a null descriptor was installed.

See:

The existing implementation of texture_slot_made_from() explicitly acknowledges that a slot can be marked as made while holding no actual host resource:

descriptor/host.rs:2141–2158

Therefore, a complete recovery mechanism needs to coordinate resource creation, queue state and descriptor validity.

A successful allocation retry alone is insufficient if a previously failed descriptor can still take the cached fast path.

The existing waiting-descriptor mechanism should be preserved:

descriptor.rs:1355–1456

In particular, successful creation already calls texture_made(), allowing waiting descriptors to be updated.

6. Asset-free differential validation

I prepared a synthetic Python model comparing four recovery policies:

  1. Current permanent refusal and queue completion behavior.

  2. Retryable resource creation only.

  3. Preserved queue requests and descriptor recovery only.

  4. Coordinated resource, queue and descriptor recovery.

The matrix contains 96 evaluations:

  • Four injected failure outcomes.

  • Two descriptor rewrite conditions.

  • Three memory recovery timings.

  • Four policies.

All 16 Python unit tests passed.

All 96 modeled outcomes matched the final explicit expectations.

Recovery results

Each policy includes 12 deliberately constructed OOM recovery scenarios.

Policy Recovered OOM scenarios
Current behavior model 0/12
Resource retry only 4/12
Queue and descriptor recovery only 0/12
Coordinated recovery 12/12

Additional controls should cover repeated OOM, resource release during backoff, reserved-to-committed allocation fallback, previous valid mip retention and unrelated queue progress.

The test should exercise the actual production paths, not a duplicate of their logic.

Testing on WARP and physical NVIDIA hardware would be useful. An unconsumed injector, failed setup or native compilation failure must not be reported as reproduction.

9. Relationship to existing memory work

The following PRs are relevant:

  • #119 — Adaptive texture pool spare-block retention.

  • #72 — Fence-tracked VRAM garbage collection.

  • #180 — Card-buffer headroom and demotion.

  • #198 — Idle texture sweep cursor recovery.

  • #205 — Host RAM trimming.

  • #206 — Idle texture reclamation under memory pressure.

  • #212 — Fence-safe texture LRU eviction and budget-aware mip clamping.

  • #92 — Memory relief and retry mechanisms for smaller PCs.

These are complementary to the proposed recovery invariant.

I also inspected the following candidate revisions:

  • #212: 1e710c4bbeb03ce24bd3f2398621c0cb1c572702

  • #92: 36ec45cdd2bdea049b80f6a16ecb76430c3b3e8f

Both retain permanent resource refusal when final texture creation returns None.

This report therefore focuses on final-failure recovery rather than introducing another eviction policy.

The duplicate search was limited to selected issues, PRs and source paths. It was not an exhaustive review of every development branch.

10. Relevance to limited-VRAM NVIDIA configurations

The existing reports in #182 and #75 illustrate memory constraints on GPUs with 8–10 GB of VRAM, although they do not establish this specific failure mechanism.

On such configurations, successful memory reclamation is particularly valuable.

A possible resource recovery defect could reduce the benefit of eviction if resources rejected during earlier pressure cannot subsequently be recreated.

This investigation does not claim that the identified mechanism explains the missing textures reported in those issues.

That relationship requires native diagnostics and independent runtime validation.

Attachment

avatar_texture_retry_audit.zip

Contents:

  • README.md

  • native_test_plan.md

  • model.py

  • test_model.py

  • matrix.csv

  • results.txt

Reproduction:

python model.py
python -m unittest -v test_model

No external Python dependencies are required.

Requested verification

Could an independent contributor validate the predicted permanent-refusal behavior through a controlled native allocation failure?

If reproduced, I suggest integrating the smallest coordinated correction that preserves resource lifetime, queue generations and descriptor publication ordering.

The existing memory-management PRs may provide useful integration points.

Credits and limitations

AI-assisted source investigation, synthetic modeling and test design using ChatGPT.

Only public repository source and invented test data were used.

No proprietary game files, executable files, shader dumps, console SDK material or game captures are included.

The Python tests were executed successfully. No production Rust patch, native D3D12 test or game benchmark has been completed by this investigation.

The proposed native test is a design plan, not an executable Rust regression.

No FPS improvement, VRAM reduction or visual correction is claimed.

</html>## Summary

While investigating memory residency and recovery on NVIDIA GPUs with limited VRAM, I identified a potential texture recovery defect involving three interacting mechanisms:

  • Permanent resource refusal after a transient allocation failure.
  • Premature completion of a pending bindless texture request.
  • Descriptor caching that may retain a null descriptor as an already prepared view.

A temporary E_OUTOFMEMORY failure can permanently prevent the same live resource from obtaining its host texture, even after memory becomes available again.

This appears complementary to the ongoing VRAM eviction, memory trimming and mip-clamping work. Preventing memory exhaustion is important, but recovering correctly after an allocation failure is a separate correctness requirement.

The attached archive contains a source audit, an executable synthetic differential model, regression tests and a proposed native fault-injection test plan.

1. Affected revision

Repository: avatarmanz/VIctory-7900XTX

Commit:

c9c932cbcc38defd8f1683d62dd298187f565031

Affected components:

  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/residency.rs
  • crates/victory-gpu/src/descriptor.rs
  • crates/victory-gpu/src/descriptor/host.rs

2. Permanent refusal after temporary allocation failure

[resource.rs:1229–1230](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1229-L1230)

/// The host refused to make it: not tried again.
refused: std::sync::atomic::AtomicBool,

The creation path checks this flag before making a host texture:

[resource.rs:1562–1572](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1562-L1572)

if made.is_none() {
    if !make || r.host.refused.load(Relaxed) {
        return None;
    }

However, the final creation failure sets the same flag regardless of the reason:

[resource.rs:1635–1643](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1635-L1643)

let Some(texture) = texture else {
    r.host.refused.store(true, Relaxed);
    return None;
};

At this point, the caller cannot distinguish between:

  • An invalid or unsupported resource description.
  • A temporary memory allocation failure.
  • A failed residency operation.
  • A device failure.

The creation helper receives an HRESULT from D3D12, but ultimately returns an Option<ID3D12Resource>.

See [resource.rs:2550–2605](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L2550-L2605).

Consequently, a transient failure may be converted into a permanent refusal for the lifetime of that guest resource.

3. Existing memory recovery does not clear this state

The residency module already recognizes E_OUTOFMEMORY and establishes a temporary upload backoff:

[residency.rs:38–43](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/residency.rs#L38-L43)

pub(crate) fn allocation_error(error: &windows::core::Error) {
    if error.code() == windows::Win32::Foundation::E_OUTOFMEMORY {
        RETRY_UPLOAD_AT.fetch_max(
            crate::host::coarse_ms().saturating_add(500),
            Ordering::Relaxed
        );
    }
}

This establishes a 500 ms retry delay for uploads.

However, when that delay expires, the resource's permanent refused flag remains set.

A possible sequence is therefore:

Texture A is requested
Host allocation returns E_OUTOFMEMORY
Global upload backoff begins
Texture A is permanently marked refused

Other resources are evicted
Available memory increases
Global upload backoff expires

Texture A is requested again
The permanent refusal prevents another allocation attempt

The same live resource remains unavailable even though the original allocation constraint may no longer exist.

There is also a related distinction in the residency failure path: an error from resident() or mapped() clears the newly created texture but does not call the same allocation_error hook.

4. Pending bindless texture requests may be lost

Removing the permanent refusal alone would not necessarily recover textures accessed through bindless descriptors.

In the texture preparation path:

[draw.rs:2554–2594](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2554-L2594)

let texture = crate::resource::host_resource(resource);
let title_fills =
    texture.is_some_and(crate::texture::title_written);

if !title_fills {
    at_once();
    host.texture_slot_done(index, write, None);
    continue;
}

When host_resource() returns None because creation failed, title_fills becomes false.

This potentially conflates two different conditions:

  • A successfully created resource that does not require a title-memory upload.
  • A resource that could not be created and may need another attempt.

For an eligible title-filled texture reaching this branch, the pending request can be marked complete despite the failed allocation.

The existing staging failure protection appears later in the function:

[draw.rs:2653–2664](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2653-L2664)

That protection is not reached when the earlier branch completes the request.

The queue's completion operation removes a matching write generation:

[descriptor/host.rs:1148–1161](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L1148-L1161)

The existing later() mechanism already provides a bounded frame-based retry path that may be suitable for recovery.

5. Descriptor caching introduces another recovery requirement

The descriptor mirroring path may record a descriptor key as prepared even when the actual resource could not be created and a null descriptor was installed.

See:

The existing implementation of texture_slot_made_from() explicitly acknowledges that a slot can be marked as made while holding no actual host resource:

[descriptor/host.rs:2141–2158](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L2141-L2158)

Therefore, a complete recovery mechanism needs to coordinate resource creation, queue state and descriptor validity.

A successful allocation retry alone is insufficient if a previously failed descriptor can still take the cached fast path.

The existing waiting-descriptor mechanism should be preserved:

[descriptor.rs:1355–1456](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor.rs#L1355-L1456)

In particular, successful creation already calls texture_made(), allowing waiting descriptors to be updated.

6. Asset-free differential validation

I prepared a synthetic Python model comparing four recovery policies:

  1. Current permanent refusal and queue completion behavior.
  2. Retryable resource creation only.
  3. Preserved queue requests and descriptor recovery only.
  4. Coordinated resource, queue and descriptor recovery.

The matrix contains 96 evaluations:

  • Four injected failure outcomes.
  • Two descriptor rewrite conditions.
  • Three memory recovery timings.
  • Four policies.

All 16 Python unit tests passed.

All 96 modeled outcomes matched the final explicit expectations.

Recovery results

Each policy includes 12 deliberately constructed OOM recovery scenarios.

Policy Recovered OOM scenarios
Current behavior model 0/12
Resource retry only 4/12
Queue and descriptor recovery only 0/12
Coordinated recovery 12/12

The resource-only policy recovers in selected cases where another descriptor write provides a subsequent opportunity after the cooldown.

It does not recover all stable-generation bindless requests.

The model also checks:

  • Normal successful allocation.
  • Creation-stage and residency-stage OOM.
  • Bounded retries during persistent memory pressure.
  • No retries for permanent invalid descriptions.
  • Separate treatment of device loss.
  • Admission remaining closed during pressure.
  • Descriptor rewrites during cooldown.
  • Preservation of newer descriptor generations.
  • Resource recreation as an independent control.

These results validate the modeled state transitions. They are not native D3D12 results, measured gameplay recovery rates or evidence of a specific visual defect.

7. Proposed correction

I suggest separating the creation outcome into distinct states.

Conceptually:

NotCreated
Ready
RetryableFailure
PermanentFailure
DeviceFailure

This is a design proposal, not a required public API or an implemented Rust enum.

A. Preserve the final failure reason

Propagate enough information from the texture creation helper to distinguish temporary OOM from permanent rejection.

Preserve existing allocation fallbacks. An earlier failed reserved allocation must not override a later successful committed allocation.

Classify the final failure after applicable fallbacks.

Include errors from residency operations in the review.

B. Bound resource-level retries

For retryable failures:

  • Keep the resource eligible for later creation.
  • Use a per-resource retry deadline.
  • Respect existing memory admission and global upload backoff.
  • Limit allocation attempts per preparation pass.
  • Avoid tight retry loops and queue starvation.

Do not retry invalid descriptions or device loss indefinitely.

C. Preserve pending texture requests

A texture that could not be created due to temporary memory pressure should not be recorded as a completed upload.

Retain its existing write generation and use the queue's retry mechanism where appropriate.

Do not allow a permanently unsupported resource to block the rest of the texture queue.

D. Preserve descriptor correctness

A temporarily failed allocation should not create a descriptor-cache state that prevents successful recovery.

The correction must:

  • Preserve descriptor generation checks.
  • Avoid invalidating a newer descriptor write.
  • Retain a previous valid view where the existing policy permits.
  • Avoid exposing newly created texture contents before upload completion.
  • Preserve resource ownership and lifetime guarantees.
  • Respect existing asynchronous upload fences.

A retry queue containing unowned raw resource pointers would introduce a separate lifetime hazard and should be avoided.

8. Proposed native fault-injection regression

The attached native_test_plan.md describes a proposed asset-free regression.

Instead of deliberately exhausting physical VRAM, inject a single E_OUTOFMEMORY at the final allocation result of a small synthetic texture.

Use the same live resource object throughout the test.

Suggested sequence:

1. Create a synthetic guest texture.
2. Record one eligible bindless descriptor.
3. Inject one final allocation failure.
4. Run the texture preparation path.
5. Verify the failed creation and pending queue state.
6. Advance the retry deadline.
7. Restore allocation success.
8. Run preparation without rewriting the descriptor.
9. Complete the GPU upload.
10. Verify the descriptor and known texture contents.

Expected distinctions:

Invariant Predicted current behavior Desired behavior
Retry after transient OOM Refused Allowed after backoff
Pending bindless request May be removed Retained
Descriptor cache May retain a null made key Retryable
Invalid description Permanently rejected Permanently rejected
Device loss Not a normal recovery case Not retried as OOM
New descriptor generation Must remain intact Must remain intact

Additional controls should cover repeated OOM, resource release during backoff, reserved-to-committed allocation fallback, previous valid mip retention and unrelated queue progress.

The test should exercise the actual production paths, not a duplicate of their logic.

Testing on WARP and physical NVIDIA hardware would be useful. An unconsumed injector, failed setup or native compilation failure must not be reported as reproduction.

9. Relationship to existing memory work

The following PRs are relevant:

  • #119 — Adaptive texture pool spare-block retention.
  • #72 — Fence-tracked VRAM garbage collection.
  • #180 — Card-buffer headroom and demotion.
  • #198 — Idle texture sweep cursor recovery.
  • #205 — Host RAM trimming.
  • #206 — Idle texture reclamation under memory pressure.
  • #212 — Fence-safe texture LRU eviction and budget-aware mip clamping.
  • #92 — Memory relief and retry mechanisms for smaller PCs.

These are complementary to the proposed recovery invariant.

I also inspected the following candidate revisions:

  • #212: 1e710c4bbeb03ce24bd3f2398621c0cb1c572702
  • #92: 36ec45cdd2bdea049b80f6a16ecb76430c3b3e8f

Both retain permanent resource refusal when final texture creation returns None.

This report therefore focuses on final-failure recovery rather than introducing another eviction policy.

The duplicate search was limited to selected issues, PRs and source paths. It was not an exhaustive review of every development branch.

10. Relevance to limited-VRAM NVIDIA configurations

The existing reports in #182 and #75 illustrate memory constraints on GPUs with 8–10 GB of VRAM, although they do not establish this specific failure mechanism.

On such configurations, successful memory reclamation is particularly valuable.

A possible resource recovery defect could reduce the benefit of eviction if resources rejected during earlier pressure cannot subsequently be recreated.

This investigation does not claim that the identified mechanism explains the missing textures reported in those issues.

That relationship requires native diagnostics and independent runtime validation.

Attachment

avatar_texture_retry_audit.zip

Contents:

  • README.md
  • native_test_plan.md
  • model.py
  • test_model.py
  • matrix.csv
  • results.txt

Reproduction:

python model.py
python -m unittest -v test_model

No external Python dependencies are required.

Requested verification

Could an independent contributor validate the predicted permanent-refusal behavior through a controlled native allocation failure?

If reproduced, I suggest integrating the smallest coordinated correction that preserves resource lifetime, queue generations and descriptor publication ordering.

The existing memory-management PRs may provide useful integration points.

Credits and limitations

avatar_texture_retry_audit.zip

Only public repository source and invented test data were used.

No proprietary game files, executable files, shader dumps, console SDK material or game captures are included.

The Python tests were executed successfully. No production Rust patch, native D3D12 test or game benchmark has been completed by this investigation.

The proposed native test is a design plan, not an executable Rust regression.

No FPS improvement, VRAM reduction or visual correction is claimed.

**@⁠FunWithFlagsDev** on GitHub · 2026-11-26 13:24 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/256) <html> <body> <!--StartFragment--><h2><span>Summary</span></h2><p><span>While investigating memory residency and recovery on NVIDIA GPUs with limited VRAM, I identified a potential texture recovery defect involving three interacting mechanisms:</span></p><ul><li><p><span>Permanent resource refusal after a transient allocation failure.</span></p></li><li><p><span>Premature completion of a pending bindless texture request.</span></p></li><li><p><span>Descriptor caching that may retain a null descriptor as an already prepared view.</span></p></li></ul><p><span>A temporary </span><code><span>E_OUTOFMEMORY</span></code><span> failure can permanently prevent the same live resource from obtaining its host texture, even after memory becomes available again.</span></p><p><span>This appears complementary to the ongoing VRAM eviction, memory trimming and mip-clamping work. Preventing memory exhaustion is important, but recovering correctly after an allocation failure is a separate correctness requirement.</span></p><p><span>The attached archive contains a source audit, an executable synthetic differential model, regression tests and a proposed native fault-injection test plan.</span></p><h2><span>1. Affected revision</span></h2><p><span>Repository: </span><code><span>avatarmanz/VIctory-7900XTX</span></code></p><p><span>Commit:</span></p><p><code><span>c9c932cbcc38defd8f1683d62dd298187f565031</span></code></p><p><span>Affected components:</span></p><ul><li><p><code><span>crates/victory-gpu/src/resource.rs</span></code></p></li><li><p><code><span>crates/victory-gpu/src/draw.rs</span></code></p></li><li><p><code><span>crates/victory-gpu/src/residency.rs</span></code></p></li><li><p><code><span>crates/victory-gpu/src/descriptor.rs</span></code></p></li><li><p><code><span>crates/victory-gpu/src/descriptor/host.rs</span></code></p></li></ul><h2><span>2. Permanent refusal after temporary allocation failure</span></h2><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1229-L1230"><code><span>resource.rs:1229–1230</span></code></a></p><pre><code><span>/// The host refused to make it: not tried again. refused: std::sync::atomic::AtomicBool,</span></code></pre><p><span>The creation path checks this flag before making a host texture:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1562-L1572"><code><span>resource.rs:1562–1572</span></code></a></p><pre><code><span>if made.is_none() { if !make || r.host.refused.load(Relaxed) { return None; }</span></code></pre><p><span>However, the final creation failure sets the same flag regardless of the reason:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1635-L1643"><code><span>resource.rs:1635–1643</span></code></a></p><pre><code><span>let Some(texture) = texture else { r.host.refused.store(true, Relaxed); return None; };</span></code></pre><p><span>At this point, the caller cannot distinguish between:</span></p><ul><li><p><span>An invalid or unsupported resource description.</span></p></li><li><p><span>A temporary memory allocation failure.</span></p></li><li><p><span>A failed residency operation.</span></p></li><li><p><span>A device failure.</span></p></li></ul><p><span>The creation helper receives an HRESULT from D3D12, but ultimately returns an </span><code><span>Option&lt;ID3D12Resource&gt;</span></code><span>.</span></p><p><span>See </span><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L2550-L2605"><code><span>resource.rs:2550–2605</span></code></a><span>.</span></p><p><span>Consequently, a transient failure may be converted into a permanent refusal for the lifetime of that guest resource.</span></p><h2><span>3. Existing memory recovery does not clear this state</span></h2><p><span>The residency module already recognizes </span><code><span>E_OUTOFMEMORY</span></code><span> and establishes a temporary upload backoff:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/residency.rs#L38-L43"><code><span>residency.rs:38–43</span></code></a></p><pre><code><span>pub(crate) fn allocation_error(error: &amp;windows::core::Error) { if error.code() == windows::Win32::Foundation::E_OUTOFMEMORY { RETRY_UPLOAD_AT.fetch_max( crate::host::coarse_ms().saturating_add(500), Ordering::Relaxed ); } }</span></code></pre><p><span>This establishes a 500 ms retry delay for uploads.</span></p><p><span>However, when that delay expires, the resource's permanent </span><code><span>refused</span></code><span> flag remains set.</span></p><p><span>A possible sequence is therefore:</span></p><pre><code><span>Texture A is requested Host allocation returns E_OUTOFMEMORY Global upload backoff begins Texture A is permanently marked refused Other resources are evicted Available memory increases Global upload backoff expires Texture A is requested again The permanent refusal prevents another allocation attempt</span></code></pre><p><span>The same live resource remains unavailable even though the original allocation constraint may no longer exist.</span></p><p><span>There is also a related distinction in the residency failure path: an error from </span><code><span>resident()</span></code><span> or </span><code><span>mapped()</span></code><span> clears the newly created texture but does not call the same </span><code><span>allocation_error</span></code><span> hook.</span></p><h2><span>4. Pending bindless texture requests may be lost</span></h2><p><span>Removing the permanent refusal alone would not necessarily recover textures accessed through bindless descriptors.</span></p><p><span>In the texture preparation path:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2554-L2594"><code><span>draw.rs:2554–2594</span></code></a></p><pre><code><span>let texture = crate::resource::host_resource(resource); let title_fills = texture.is_some_and(crate::texture::title_written); if !title_fills { at_once(); host.texture_slot_done(index, write, None); continue; }</span></code></pre><p><span>When </span><code><span>host_resource()</span></code><span> returns </span><code><span>None</span></code><span> because creation failed, </span><code><span>title_fills</span></code><span> becomes false.</span></p><p><span>This potentially conflates two different conditions:</span></p><ul><li><p><span>A successfully created resource that does not require a title-memory upload.</span></p></li><li><p><span>A resource that could not be created and may need another attempt.</span></p></li></ul><p><span>For an eligible title-filled texture reaching this branch, the pending request can be marked complete despite the failed allocation.</span></p><p><span>The existing staging failure protection appears later in the function:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2653-L2664"><code><span>draw.rs:2653–2664</span></code></a></p><p><span>That protection is not reached when the earlier branch completes the request.</span></p><p><span>The queue's completion operation removes a matching write generation:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L1148-L1161"><code><span>descriptor/host.rs:1148–1161</span></code></a></p><p><span>The existing </span><code><span>later()</span></code><span> mechanism already provides a bounded frame-based retry path that may be suitable for recovery.</span></p><h2><span>5. Descriptor caching introduces another recovery requirement</span></h2><p><span>The descriptor mirroring path may record a descriptor key as prepared even when the actual resource could not be created and a null descriptor was installed.</span></p><p><span>See:</span></p><ul><li><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3274-L3290"><code><span>descriptor/host.rs:3274–3290</span></code></a></p></li><li><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3394-L3414"><code><span>descriptor/host.rs:3394–3414</span></code></a></p></li></ul><p><span>The existing implementation of </span><code><span>texture_slot_made_from()</span></code><span> explicitly acknowledges that a slot can be marked as made while holding no actual host resource:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L2141-L2158"><code><span>descriptor/host.rs:2141–2158</span></code></a></p><p><span>Therefore, a complete recovery mechanism needs to coordinate resource creation, queue state and descriptor validity.</span></p><p><span>A successful allocation retry alone is insufficient if a previously failed descriptor can still take the cached fast path.</span></p><p><span>The existing waiting-descriptor mechanism should be preserved:</span></p><p><a href="https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor.rs#L1355-L1456"><code><span>descriptor.rs:1355–1456</span></code></a></p><p><span>In particular, successful creation already calls </span><code><span>texture_made()</span></code><span>, allowing waiting descriptors to be updated.</span></p><h2><span>6. Asset-free differential validation</span></h2><p><span>I prepared a synthetic Python model comparing four recovery policies:</span></p><ol start="1"><li><p><span>Current permanent refusal and queue completion behavior.</span></p></li><li><p><span>Retryable resource creation only.</span></p></li><li><p><span>Preserved queue requests and descriptor recovery only.</span></p></li><li><p><span>Coordinated resource, queue and descriptor recovery.</span></p></li></ol><p><span>The matrix contains 96 evaluations:</span></p><ul><li><p><span>Four injected failure outcomes.</span></p></li><li><p><span>Two descriptor rewrite conditions.</span></p></li><li><p><span>Three memory recovery timings.</span></p></li><li><p><span>Four policies.</span></p></li></ul><p><span>All 16 Python unit tests passed.</span></p><p><span>All 96 modeled outcomes matched the final explicit expectations.</span></p><h3><span>Recovery results</span></h3><p><span>Each policy includes 12 deliberately constructed OOM recovery scenarios.</span></p> Policy | Recovered OOM scenarios -- | -- Current behavior model | 0/12 Resource retry only | 4/12 Queue and descriptor recovery only | 0/12 Coordinated recovery | 12/12 <p><span>Additional controls should cover repeated OOM, resource release during backoff, reserved-to-committed allocation fallback, previous valid mip retention and unrelated queue progress.</span></p><p><span>The test should exercise the actual production paths, not a duplicate of their logic.</span></p><p><span>Testing on WARP and physical NVIDIA hardware would be useful. An unconsumed injector, failed setup or native compilation failure must not be reported as reproduction.</span></p><h2><span>9. Relationship to existing memory work</span></h2><p><span>The following PRs are relevant:</span></p><ul><li><p><span>#119 — Adaptive texture pool spare-block retention.</span></p></li><li><p><span>#72 — Fence-tracked VRAM garbage collection.</span></p></li><li><p><span>#180 — Card-buffer headroom and demotion.</span></p></li><li><p><span>#198 — Idle texture sweep cursor recovery.</span></p></li><li><p><span>#205 — Host RAM trimming.</span></p></li><li><p><span>#206 — Idle texture reclamation under memory pressure.</span></p></li><li><p><span>#212 — Fence-safe texture LRU eviction and budget-aware mip clamping.</span></p></li><li><p><span>#92 — Memory relief and retry mechanisms for smaller PCs.</span></p></li></ul><p><span>These are complementary to the proposed recovery invariant.</span></p><p><span>I also inspected the following candidate revisions:</span></p><ul><li><p><span>#212: </span><code><span>1e710c4bbeb03ce24bd3f2398621c0cb1c572702</span></code></p></li><li><p><span>#92: </span><code><span>36ec45cdd2bdea049b80f6a16ecb76430c3b3e8f</span></code></p></li></ul><p><span>Both retain permanent resource refusal when final texture creation returns </span><code><span>None</span></code><span>.</span></p><p><span>This report therefore focuses on final-failure recovery rather than introducing another eviction policy.</span></p><p><span>The duplicate search was limited to selected issues, PRs and source paths. It was not an exhaustive review of every development branch.</span></p><h2><span>10. Relevance to limited-VRAM NVIDIA configurations</span></h2><p><span>The existing reports in #182 and #75 illustrate memory constraints on GPUs with 8–10 GB of VRAM, although they do not establish this specific failure mechanism.</span></p><p><span>On such configurations, successful memory reclamation is particularly valuable.</span></p><p><span>A possible resource recovery defect could reduce the benefit of eviction if resources rejected during earlier pressure cannot subsequently be recreated.</span></p><p><span>This investigation does not claim that the identified mechanism explains the missing textures reported in those issues.</span></p><p><span>That relationship requires native diagnostics and independent runtime validation.</span></p><h2><span>Attachment</span></h2><p><code><span>avatar_texture_retry_audit.zip</span></code></p><p><span>Contents:</span></p><ul><li><p><code><span>README.md</span></code></p></li><li><p><code><span>native_test_plan.md</span></code></p></li><li><p><code><span>model.py</span></code></p></li><li><p><code><span>test_model.py</span></code></p></li><li><p><code><span>matrix.csv</span></code></p></li><li><p><code><span>results.txt</span></code></p></li></ul><p><span>Reproduction:</span></p><pre><code><span>python model.py python -m unittest -v test_model</span></code></pre><p><span>No external Python dependencies are required.</span></p><h2><span>Requested verification</span></h2><p><span>Could an independent contributor validate the predicted permanent-refusal behavior through a controlled native allocation failure?</span></p><p><span>If reproduced, I suggest integrating the smallest coordinated correction that preserves resource lifetime, queue generations and descriptor publication ordering.</span></p><p><span>The existing memory-management PRs may provide useful integration points.</span></p><h2><span>Credits and limitations</span></h2><p><span>AI-assisted source investigation, synthetic modeling and test design using ChatGPT.</span></p><p><span>Only public repository source and invented test data were used.</span></p><p><span>No proprietary game files, executable files, shader dumps, console SDK material or game captures are included.</span></p><p><span>The Python tests were executed successfully. No production Rust patch, native D3D12 test or game benchmark has been completed by this investigation.</span></p><p><span>The proposed native test is a design plan, not an executable Rust regression.</span></p><p><span>No FPS improvement, VRAM reduction or visual correction is claimed.</span></p><!--EndFragment--> </body> </html>## Summary While investigating memory residency and recovery on NVIDIA GPUs with limited VRAM, I identified a potential texture recovery defect involving three interacting mechanisms: - Permanent resource refusal after a transient allocation failure. - Premature completion of a pending bindless texture request. - Descriptor caching that may retain a null descriptor as an already prepared view. A temporary `E_OUTOFMEMORY` failure can permanently prevent the same live resource from obtaining its host texture, even after memory becomes available again. This appears complementary to the ongoing VRAM eviction, memory trimming and mip-clamping work. Preventing memory exhaustion is important, but recovering correctly after an allocation failure is a separate correctness requirement. The attached archive contains a source audit, an executable synthetic differential model, regression tests and a proposed native fault-injection test plan. ## 1. Affected revision Repository: `avatarmanz/VIctory-7900XTX` Commit: `c9c932cbcc38defd8f1683d62dd298187f565031` Affected components: - `crates/victory-gpu/src/resource.rs` - `crates/victory-gpu/src/draw.rs` - `crates/victory-gpu/src/residency.rs` - `crates/victory-gpu/src/descriptor.rs` - `crates/victory-gpu/src/descriptor/host.rs` ## 2. Permanent refusal after temporary allocation failure [`[resource.rs:1229–1230](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1229-L1230)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1229-L1230) ```rust /// The host refused to make it: not tried again. refused: std::sync::atomic::AtomicBool, ``` The creation path checks this flag before making a host texture: [`[resource.rs:1562–1572](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1562-L1572)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1562-L1572) ```rust if made.is_none() { if !make || r.host.refused.load(Relaxed) { return None; } ``` However, the final creation failure sets the same flag regardless of the reason: [`[resource.rs:1635–1643](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1635-L1643)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L1635-L1643) ```rust let Some(texture) = texture else { r.host.refused.store(true, Relaxed); return None; }; ``` At this point, the caller cannot distinguish between: - An invalid or unsupported resource description. - A temporary memory allocation failure. - A failed residency operation. - A device failure. The creation helper receives an HRESULT from D3D12, but ultimately returns an `Option<ID3D12Resource>`. See [`[resource.rs:2550–2605](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L2550-L2605)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/resource.rs#L2550-L2605). Consequently, a transient failure may be converted into a permanent refusal for the lifetime of that guest resource. ## 3. Existing memory recovery does not clear this state The residency module already recognizes `E_OUTOFMEMORY` and establishes a temporary upload backoff: [`[residency.rs:38–43](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/residency.rs#L38-L43)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/residency.rs#L38-L43) ```rust pub(crate) fn allocation_error(error: &windows::core::Error) { if error.code() == windows::Win32::Foundation::E_OUTOFMEMORY { RETRY_UPLOAD_AT.fetch_max( crate::host::coarse_ms().saturating_add(500), Ordering::Relaxed ); } } ``` This establishes a 500 ms retry delay for uploads. However, when that delay expires, the resource's permanent `refused` flag remains set. A possible sequence is therefore: ```text Texture A is requested Host allocation returns E_OUTOFMEMORY Global upload backoff begins Texture A is permanently marked refused Other resources are evicted Available memory increases Global upload backoff expires Texture A is requested again The permanent refusal prevents another allocation attempt ``` The same live resource remains unavailable even though the original allocation constraint may no longer exist. There is also a related distinction in the residency failure path: an error from `resident()` or `mapped()` clears the newly created texture but does not call the same `allocation_error` hook. ## 4. Pending bindless texture requests may be lost Removing the permanent refusal alone would not necessarily recover textures accessed through bindless descriptors. In the texture preparation path: [`[draw.rs:2554–2594](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2554-L2594)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2554-L2594) ```rust let texture = crate::resource::host_resource(resource); let title_fills = texture.is_some_and(crate::texture::title_written); if !title_fills { at_once(); host.texture_slot_done(index, write, None); continue; } ``` When `host_resource()` returns `None` because creation failed, `title_fills` becomes false. This potentially conflates two different conditions: - A successfully created resource that does not require a title-memory upload. - A resource that could not be created and may need another attempt. For an eligible title-filled texture reaching this branch, the pending request can be marked complete despite the failed allocation. The existing staging failure protection appears later in the function: [`[draw.rs:2653–2664](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2653-L2664)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/draw.rs#L2653-L2664) That protection is not reached when the earlier branch completes the request. The queue's completion operation removes a matching write generation: [`[descriptor/host.rs:1148–1161](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L1148-L1161)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L1148-L1161) The existing `later()` mechanism already provides a bounded frame-based retry path that may be suitable for recovery. ## 5. Descriptor caching introduces another recovery requirement The descriptor mirroring path may record a descriptor key as prepared even when the actual resource could not be created and a null descriptor was installed. See: - [`[descriptor/host.rs:3274–3290](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3274-L3290)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3274-L3290) - [`[descriptor/host.rs:3394–3414](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3394-L3414)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L3394-L3414) The existing implementation of `texture_slot_made_from()` explicitly acknowledges that a slot can be marked as made while holding no actual host resource: [`[descriptor/host.rs:2141–2158](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L2141-L2158)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor/host.rs#L2141-L2158) Therefore, a complete recovery mechanism needs to coordinate resource creation, queue state and descriptor validity. A successful allocation retry alone is insufficient if a previously failed descriptor can still take the cached fast path. The existing waiting-descriptor mechanism should be preserved: [`[descriptor.rs:1355–1456](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor.rs#L1355-L1456)`](https://github.com/avatarmanz/VIctory-7900XTX/blob/c9c932cb/crates/victory-gpu/src/descriptor.rs#L1355-L1456) In particular, successful creation already calls `texture_made()`, allowing waiting descriptors to be updated. ## 6. Asset-free differential validation I prepared a synthetic Python model comparing four recovery policies: 1. Current permanent refusal and queue completion behavior. 2. Retryable resource creation only. 3. Preserved queue requests and descriptor recovery only. 4. Coordinated resource, queue and descriptor recovery. The matrix contains 96 evaluations: - Four injected failure outcomes. - Two descriptor rewrite conditions. - Three memory recovery timings. - Four policies. All 16 Python unit tests passed. All 96 modeled outcomes matched the final explicit expectations. ### Recovery results Each policy includes 12 deliberately constructed OOM recovery scenarios. | Policy | Recovered OOM scenarios | |---|---:| | Current behavior model | 0/12 | | Resource retry only | 4/12 | | Queue and descriptor recovery only | 0/12 | | Coordinated recovery | 12/12 | The resource-only policy recovers in selected cases where another descriptor write provides a subsequent opportunity after the cooldown. It does not recover all stable-generation bindless requests. The model also checks: - Normal successful allocation. - Creation-stage and residency-stage OOM. - Bounded retries during persistent memory pressure. - No retries for permanent invalid descriptions. - Separate treatment of device loss. - Admission remaining closed during pressure. - Descriptor rewrites during cooldown. - Preservation of newer descriptor generations. - Resource recreation as an independent control. These results validate the modeled state transitions. They are not native D3D12 results, measured gameplay recovery rates or evidence of a specific visual defect. ## 7. Proposed correction I suggest separating the creation outcome into distinct states. Conceptually: ```text NotCreated Ready RetryableFailure PermanentFailure DeviceFailure ``` This is a design proposal, not a required public API or an implemented Rust enum. ### A. Preserve the final failure reason Propagate enough information from the texture creation helper to distinguish temporary OOM from permanent rejection. Preserve existing allocation fallbacks. An earlier failed reserved allocation must not override a later successful committed allocation. Classify the final failure after applicable fallbacks. Include errors from residency operations in the review. ### B. Bound resource-level retries For retryable failures: - Keep the resource eligible for later creation. - Use a per-resource retry deadline. - Respect existing memory admission and global upload backoff. - Limit allocation attempts per preparation pass. - Avoid tight retry loops and queue starvation. Do not retry invalid descriptions or device loss indefinitely. ### C. Preserve pending texture requests A texture that could not be created due to temporary memory pressure should not be recorded as a completed upload. Retain its existing write generation and use the queue's retry mechanism where appropriate. Do not allow a permanently unsupported resource to block the rest of the texture queue. ### D. Preserve descriptor correctness A temporarily failed allocation should not create a descriptor-cache state that prevents successful recovery. The correction must: - Preserve descriptor generation checks. - Avoid invalidating a newer descriptor write. - Retain a previous valid view where the existing policy permits. - Avoid exposing newly created texture contents before upload completion. - Preserve resource ownership and lifetime guarantees. - Respect existing asynchronous upload fences. A retry queue containing unowned raw resource pointers would introduce a separate lifetime hazard and should be avoided. ## 8. Proposed native fault-injection regression The attached `native_test_plan.md` describes a proposed asset-free regression. Instead of deliberately exhausting physical VRAM, inject a single `E_OUTOFMEMORY` at the final allocation result of a small synthetic texture. Use the same live resource object throughout the test. Suggested sequence: ```text 1. Create a synthetic guest texture. 2. Record one eligible bindless descriptor. 3. Inject one final allocation failure. 4. Run the texture preparation path. 5. Verify the failed creation and pending queue state. 6. Advance the retry deadline. 7. Restore allocation success. 8. Run preparation without rewriting the descriptor. 9. Complete the GPU upload. 10. Verify the descriptor and known texture contents. ``` Expected distinctions: | Invariant | Predicted current behavior | Desired behavior | |---|---|---| | Retry after transient OOM | Refused | Allowed after backoff | | Pending bindless request | May be removed | Retained | | Descriptor cache | May retain a null made key | Retryable | | Invalid description | Permanently rejected | Permanently rejected | | Device loss | Not a normal recovery case | Not retried as OOM | | New descriptor generation | Must remain intact | Must remain intact | Additional controls should cover repeated OOM, resource release during backoff, reserved-to-committed allocation fallback, previous valid mip retention and unrelated queue progress. The test should exercise the actual production paths, not a duplicate of their logic. Testing on WARP and physical NVIDIA hardware would be useful. An unconsumed injector, failed setup or native compilation failure must not be reported as reproduction. ## 9. Relationship to existing memory work The following PRs are relevant: - #119 — Adaptive texture pool spare-block retention. - #72 — Fence-tracked VRAM garbage collection. - #180 — Card-buffer headroom and demotion. - #198 — Idle texture sweep cursor recovery. - #205 — Host RAM trimming. - #206 — Idle texture reclamation under memory pressure. - #212 — Fence-safe texture LRU eviction and budget-aware mip clamping. - #92 — Memory relief and retry mechanisms for smaller PCs. These are complementary to the proposed recovery invariant. I also inspected the following candidate revisions: - #212: `1e710c4bbeb03ce24bd3f2398621c0cb1c572702` - #92: `36ec45cdd2bdea049b80f6a16ecb76430c3b3e8f` Both retain permanent resource refusal when final texture creation returns `None`. This report therefore focuses on final-failure recovery rather than introducing another eviction policy. The duplicate search was limited to selected issues, PRs and source paths. It was not an exhaustive review of every development branch. ## 10. Relevance to limited-VRAM NVIDIA configurations The existing reports in #182 and #75 illustrate memory constraints on GPUs with 8–10 GB of VRAM, although they do not establish this specific failure mechanism. On such configurations, successful memory reclamation is particularly valuable. A possible resource recovery defect could reduce the benefit of eviction if resources rejected during earlier pressure cannot subsequently be recreated. This investigation does not claim that the identified mechanism explains the missing textures reported in those issues. That relationship requires native diagnostics and independent runtime validation. ## Attachment `avatar_texture_retry_audit.zip` Contents: - `README.md` - `native_test_plan.md` - `model.py` - `test_model.py` - `matrix.csv` - `results.txt` Reproduction: ```bash python model.py python -m unittest -v test_model ``` No external Python dependencies are required. ## Requested verification Could an independent contributor validate the predicted permanent-refusal behavior through a controlled native allocation failure? If reproduced, I suggest integrating the smallest coordinated correction that preserves resource lifetime, queue generations and descriptor publication ordering. The existing memory-management PRs may provide useful integration points. ## Credits and limitations [avatar_texture_retry_audit.zip](https://github.com/user-attachments/files/35465937/avatar_texture_retry_audit.zip) Only public repository source and invented test data were used. No proprietary game files, executable files, shader dumps, console SDK material or game captures are included. The Python tests were executed successfully. No production Rust patch, native D3D12 test or game benchmark has been completed by this investigation. The proposed native test is a design plan, not an executable Rust regression. No FPS improvement, VRAM reduction or visual correction is claimed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:26:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
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/avatarmanz--VIctory-7900XTX#256
No description provided.