Texture eviction searches become expensive under sustained memory pressure (RTX 4070 SUPER, 32 GB RAM) #3534

Open
opened 2026-11-30 00:36:26 +00:00 by mrDeShock · 0 comments
mrDeShock commented 2026-11-30 00:36:26 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mrDeShock on 2026-11-30T00:36:26Z.


<html>

Summary

During an extended performance investigation of VIctory-NVIDIA, I observed a substantial increase in texture eviction search costs as an open-world session progressed and texture memory pressure increased.

The problem persists even with the additional last-use timestamp reset proposed in #3531.

This report focuses on the remaining eviction overhead rather than the individual bookkeeping fix.

Hardware and software

  • CPU: Intel Core i7-11700KF (8 cores / 16 threads)

  • GPU: NVIDIA GeForce RTX 4070 SUPER, 12 GB

  • RAM: 32 GB DDR4-2666

  • Storage: Samsung 990 EVO NVMe SSD

  • OS: Windows 11 Pro, build 26200

  • NVIDIA driver: 610.88

  • Page file: 32–64 GB

  • Streamline: 2.14.16

Tested build

Base commit: f889bb07

Local changes:

  • Additional streamed-out texture timestamp reset in resource.rs, proposed in #3531.

  • Descriptor Shape Cache patch from #2804, with VICTORY_SHAPE_CACHE=0 requested at launch.

This is a locally modified release build, not an unmodified build of the latest upstream main.

Configuration

  • Xbox Series S profile

  • DLSS Quality

  • Native DLSS Frame Generation 2X

  • 1920×1080 display

  • MFG Unlocker disabled

  • Texture No Wait disabled in F1

  • Narrow GPU Barriers disabled in F1

  • Constants Heap In Place disabled in F1

  • Thin Lists enabled

  • Relay stage 2

  • Join Parts: 8

  • Indirect Batch: 2

  • Card Compares: 64 KB

Additional requested launcher parameters:

VICTORY_TEXTURE_ROOM_PERCENT=80
VICTORY_PROCESS_MEMORY=0
VICTORY_LIBRARY_KEEP_MB=0
VICTORY_SUBMIT_SPLIT=0
VICTORY_DSTORAGE_WORKERS=8
VICTORY_THIN_THREADS=12
VICTORY_UNDER_THREADS=8
VICTORY_LAND_THREADS=6
VICTORY_PLACED_ORDER=1
VICTORY_PIPELINE_WORKERS=12
VICTORY_SHAPE_CACHE=0

Observed degradation

The session lasted approximately 8 minutes and 53 seconds and ended normally.

The following values come from the victory_gpu::host diagnostic counter:

looks for textures to let go, ... ms each, the longest ...

Elapsed time | Cumulative searches | Cumulative average | Maximum -- | -- | -- | -- 00:09 | 4 | 0.03 ms | 0.1 ms 01:52 | 93 | 3.11 ms | 8.6 ms 03:36 | 185 | 15.34 ms | 82.6 ms 05:19 | 268 | 32.38 ms | 83.5 ms 07:03 | 361 | 45.16 ms | 100.2 ms 08:42 | 451 | 54.09 ms | 103.3 ms

The cumulative average does not fully reflect the cost of recent searches.

Using the difference between the final two cumulative samples, the approximate average cost of the last 90 searches is 89.9 ms per search.

Texture memory pressure

At approximately 03:25:

8057 MB in use
- 147 MB free in texture blocks
+ 122 MB kept for card copies of title buffers
+ 782 MB kept for render targets
= 8814 MB

Texture room line: 8984 MB
After face headroom: 8728 MB
DXGI budget: 11231 MB

no room, new textures wait

At approximately 08:42:

8616 MB in use

  • 259 MB free in texture blocks
  • 126 MB kept for card copies of title buffers
  • 834 MB kept for render targets
    = 9317 MB

Texture room line: 8984 MB
After face headroom: 8728 MB
DXGI budget: 11231 MB

no room, new textures wait

The final diagnostic sample also reports:

451 looks for textures to let go,
54.09 ms each, the longest 103.3

Interestingly, the final texture queue pass reports zero slots held back for room, while 4628 first-upload room decisions were allowed during the preceding five seconds.

The slot eviction counter also remained at zero.

These observations suggest that the internal room warning alone does not fully explain the behavior of the texture queue.

Related investigation

A similar degradation was previously investigated in Foxhound:

The additional bookkeeping correction is proposed in:

However, the current observations indicate that stale last-use timestamps in the streamed-out release path are unlikely to be the only possible source of sustained eviction overhead.

Areas worth investigating

I would suggest profiling the following parts of resource.rs::let_go_idle():

  • Number of resource records examined per eviction search.

  • Number of eligible candidates versus records that no longer have a host copy.

  • Time spent collecting and sorting eviction candidates.

  • Time spent acquiring and holding resource locks.

  • Whether candidate searches can be bounded or resumed incrementally.

  • Whether resource destruction can safely be deferred outside the submission-critical path.

An additional breakdown of eviction search time would help distinguish scanning, sorting, lock contention and resource destruction.

Expected behavior

Texture eviction search costs should ideally remain bounded during sustained memory pressure instead of increasing substantially over the course of a session.

Limitations

This is an exploratory performance report from a locally modified build.

It is not a controlled A/B comparison, and the measurements do not establish which specific operation causes the increasing search cost. The issue has not yet been independently reproduced on the latest upstream main.

I hope these measurements provide a useful starting point for further profiling and optimization.

</html>
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6686326607 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3534). Originally posted by [mrDeShock](https://github.com/mrDeShock) on 2026-11-30T00:36:26Z. --- <html> <body> <!--StartFragment--><h2><span>Summary</span></h2><p><span>During an extended performance investigation of VIctory-NVIDIA, I observed a substantial increase in texture eviction search costs as an open-world session progressed and texture memory pressure increased.</span></p><p><span>The problem persists even with the additional last-use timestamp reset proposed in #3531.</span></p><p><span>This report focuses on the remaining eviction overhead rather than the individual bookkeeping fix.</span></p><h2><span>Hardware and software</span></h2><ul><li><p><span>CPU: Intel Core i7-11700KF (8 cores / 16 threads)</span></p></li><li><p><span>GPU: NVIDIA GeForce RTX 4070 SUPER, 12 GB</span></p></li><li><p><span>RAM: 32 GB DDR4-2666</span></p></li><li><p><span>Storage: Samsung 990 EVO NVMe SSD</span></p></li><li><p><span>OS: Windows 11 Pro, build 26200</span></p></li><li><p><span>NVIDIA driver: 610.88</span></p></li><li><p><span>Page file: 32–64 GB</span></p></li><li><p><span>Streamline: 2.14.16</span></p></li></ul><h2><span>Tested build</span></h2><p><span>Base commit: </span><code><span>f889bb07</span></code></p><p><span>Local changes:</span></p><ul><li><p><span>Additional streamed-out texture timestamp reset in </span><code><span>resource.rs</span></code><span>, proposed in #3531.</span></p></li><li><p><span>Descriptor Shape Cache patch from #2804, with </span><code><span>VICTORY_SHAPE_CACHE=0</span></code><span> requested at launch.</span></p></li></ul><p><span>This is a locally modified release build, not an unmodified build of the latest upstream main.</span></p><h2><span>Configuration</span></h2><ul><li><p><span>Xbox Series S profile</span></p></li><li><p><span>DLSS Quality</span></p></li><li><p><span>Native DLSS Frame Generation 2X</span></p></li><li><p><span>1920×1080 display</span></p></li><li><p><span>MFG Unlocker disabled</span></p></li><li><p><span>Texture No Wait disabled in F1</span></p></li><li><p><span>Narrow GPU Barriers disabled in F1</span></p></li><li><p><span>Constants Heap In Place disabled in F1</span></p></li><li><p><span>Thin Lists enabled</span></p></li><li><p><span>Relay stage 2</span></p></li><li><p><span>Join Parts: 8</span></p></li><li><p><span>Indirect Batch: 2</span></p></li><li><p><span>Card Compares: 64 KB</span></p></li></ul><p><span>Additional requested launcher parameters:</span></p><pre><code><span>VICTORY_TEXTURE_ROOM_PERCENT=80 VICTORY_PROCESS_MEMORY=0 VICTORY_LIBRARY_KEEP_MB=0 VICTORY_SUBMIT_SPLIT=0 VICTORY_DSTORAGE_WORKERS=8 VICTORY_THIN_THREADS=12 VICTORY_UNDER_THREADS=8 VICTORY_LAND_THREADS=6 VICTORY_PLACED_ORDER=1 VICTORY_PIPELINE_WORKERS=12 VICTORY_SHAPE_CACHE=0</span></code></pre><h2><span>Observed degradation</span></h2><p><span>The session lasted approximately 8 minutes and 53 seconds and ended normally.</span></p><p><span>The following values come from the </span><code><span>victory_gpu::host</span></code><span> diagnostic counter:</span></p><p><code><span>looks for textures to let go, ... ms each, the longest ...</span></code></p> Elapsed time | Cumulative searches | Cumulative average | Maximum -- | -- | -- | -- 00:09 | 4 | 0.03 ms | 0.1 ms 01:52 | 93 | 3.11 ms | 8.6 ms 03:36 | 185 | 15.34 ms | 82.6 ms 05:19 | 268 | 32.38 ms | 83.5 ms 07:03 | 361 | 45.16 ms | 100.2 ms 08:42 | 451 | 54.09 ms | 103.3 ms <p><span>The cumulative average does not fully reflect the cost of recent searches.</span></p><p><span>Using the difference between the final two cumulative samples, the approximate average cost of the last 90 searches is </span><strong><span>89.9 ms per search</span></strong><span>.</span></p><h2><span>Texture memory pressure</span></h2><p><span>At approximately 03:25:</span></p><pre><code><span>8057 MB in use - 147 MB free in texture blocks + 122 MB kept for card copies of title buffers + 782 MB kept for render targets = 8814 MB Texture room line: 8984 MB After face headroom: 8728 MB DXGI budget: 11231 MB no room, new textures wait</span></code></pre><p><span>At approximately 08:42:</span></p><pre><code><span>8616 MB in use - 259 MB free in texture blocks + 126 MB kept for card copies of title buffers + 834 MB kept for render targets = 9317 MB Texture room line: 8984 MB After face headroom: 8728 MB DXGI budget: 11231 MB no room, new textures wait</span></code></pre><p><span>The final diagnostic sample also reports:</span></p><pre><code><span>451 looks for textures to let go, 54.09 ms each, the longest 103.3</span></code></pre><p><span>Interestingly, the final texture queue pass reports zero slots held back for room, while 4628 first-upload room decisions were allowed during the preceding five seconds.</span></p><p><span>The slot eviction counter also remained at zero.</span></p><p><span>These observations suggest that the internal room warning alone does not fully explain the behavior of the texture queue.</span></p><h2><span>Related investigation</span></h2><p><span>A similar degradation was previously investigated in Foxhound:</span></p><ul><li><p><a href="https://github.com/readmet3xt-lab/foxhound/issues/12"><span>https://github.com/readmet3xt-lab/foxhound/issues/12</span></a></p></li><li><p><a href="https://github.com/readmet3xt-lab/foxhound/commit/3d52ac8"><span>https://github.com/readmet3xt-lab/foxhound/commit/3d52ac8</span></a></p></li></ul><p><span>The additional bookkeeping correction is proposed in:</span></p><ul><li><p><span>#3531</span></p></li></ul><p><span>However, the current observations indicate that stale last-use timestamps in the streamed-out release path are unlikely to be the only possible source of sustained eviction overhead.</span></p><h2><span>Areas worth investigating</span></h2><p><span>I would suggest profiling the following parts of </span><code><span>resource.rs::let_go_idle()</span></code><span>:</span></p><ul><li><p><span>Number of resource records examined per eviction search.</span></p></li><li><p><span>Number of eligible candidates versus records that no longer have a host copy.</span></p></li><li><p><span>Time spent collecting and sorting eviction candidates.</span></p></li><li><p><span>Time spent acquiring and holding resource locks.</span></p></li><li><p><span>Whether candidate searches can be bounded or resumed incrementally.</span></p></li><li><p><span>Whether resource destruction can safely be deferred outside the submission-critical path.</span></p></li></ul><p><span>An additional breakdown of eviction search time would help distinguish scanning, sorting, lock contention and resource destruction.</span></p><h2><span>Expected behavior</span></h2><p><span>Texture eviction search costs should ideally remain bounded during sustained memory pressure instead of increasing substantially over the course of a session.</span></p><h2><span>Limitations</span></h2><p><span>This is an exploratory performance report from a locally modified build.</span></p><p><span>It is not a controlled A/B comparison, and the measurements do not establish which specific operation causes the increasing search cost. The issue has not yet been independently reproduced on the latest upstream main.</span></p><p><span>I hope these measurements provide a useful starting point for further profiling and optimization.</span></p><!--EndFragment--> </body> </html>
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#3534
No description provided.