Texture eviction searches become expensive under sustained memory pressure (RTX 4070 SUPER, 32 GB RAM) #3534
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#3534
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@mrDeShock on GitHub · 2026-11-30 00:36 UTC · original
<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:
f889bb07Local changes:
Additional streamed-out texture timestamp reset in
resource.rs, proposed in #3531.Descriptor Shape Cache patch from #2804, with
VICTORY_SHAPE_CACHE=0requested 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:
Observed degradation
The session lasted approximately 8 minutes and 53 seconds and ended normally.
The following values come from the
victory_gpu::hostdiagnostic counter:
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 mslooks for textures to let go, ... ms each, the longest ...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:
At approximately 08:42:
The final diagnostic sample also reports:
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:
https://github.com/readmet3xt-lab/foxhound/issues/12
https://github.com/readmet3xt-lab/foxhound/commit/3d52ac8
The additional bookkeeping correction is proposed in:
#3531
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>