play: DirectStorage workers at normal priority #4605

Closed
github-bot wants to merge 1 commit from github-bot/gh-4604 into main AGit
Owner

@⁠isgti07-hub on GitHub · 2026-11-30 23:44 UTC · original
isgti07-hub:fix/dstorage-priority → main · +3 −0 · 1 files · 1 commits · closed without merging

What it changes

The DirectStorage workers that read and unpack the world run below normal priority (VICTORY_DSTORAGE_PRIORITY defaults to -1), while the layer's own helpers run above normal (VICTORY_HELPER_PRIORITY=1). Driving fast, with every core busy, the workers lost out: 85 to 239 slots of the texture queue at a time were waiting for their memory, and the world came in late and low in detail.

The launcher now sets VICTORY_DSTORAGE_PRIORITY=0 (an existing switch). One line, with a comment. A small, low-risk change; happy to drop it if you'd rather keep the workers below normal.

How it was tested

  • GPU and profile: RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11; Series X, 3840x2160 output, DLSS Quality, no frame generation, no ray tracing; release build; game files on an NVMe SSD.
  • Before: the world loading in late and blurry at speed.
  • After: somewhat sooner at speed, though still late in the fastest cars; frame rate the same within noise. Not measured with numbers: this is what the player saw.
  • Game results are from my own build, which carried this change together with the other three pull requests listed in this set; this exact commit was not played on its own.
  • For shader changes, the wave sizes tested: no shader change.
  • cargo test passed for the crates it touches: no Rust change (launcher only); nothing run.
  • Commit: 8e47ba79, on main 7d93ee07.

Checked for overlap

  • I searched the open and closed pull requests for VICTORY_DSTORAGE_PRIORITY. Related: none found.

🤖 Generated with Claude Code

**@⁠isgti07-hub** on GitHub · 2026-11-30 23:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4604) `isgti07-hub:fix/dstorage-priority` → `main` · +3 −0 · 1 files · 1 commits · closed without merging ## What it changes The DirectStorage workers that read and unpack the world run below normal priority (`VICTORY_DSTORAGE_PRIORITY` defaults to -1), while the layer's own helpers run above normal (`VICTORY_HELPER_PRIORITY=1`). Driving fast, with every core busy, the workers lost out: 85 to 239 slots of the texture queue at a time were waiting for their memory, and the world came in late and low in detail. The launcher now sets `VICTORY_DSTORAGE_PRIORITY=0` (an existing switch). One line, with a comment. A small, low-risk change; happy to drop it if you'd rather keep the workers below normal. ## How it was tested - GPU and profile: RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11; Series X, 3840x2160 output, DLSS Quality, no frame generation, no ray tracing; release build; game files on an NVMe SSD. - Before: the world loading in late and blurry at speed. - After: somewhat sooner at speed, though still late in the fastest cars; frame rate the same within noise. Not measured with numbers: this is what the player saw. - Game results are from my own build, which carried this change together with the other three pull requests listed in this set; this exact commit was not played on its own. - For shader changes, the wave sizes tested: no shader change. - `cargo test` passed for the crates it touches: no Rust change (launcher only); nothing run. - Commit: 8e47ba79, on main 7d93ee07. ## Checked for overlap - [x] I searched the open and closed pull requests for `VICTORY_DSTORAGE_PRIORITY`. Related: none found. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`slots_showing` took the slot's `Made` key with `?`, but `Made` has keys
for the title's `count` slots only while `kept` also has the dynamic
ones: a host texture shown by a dynamic slot was no longer reported, so
it was no longer blocked and could be chosen (freeing nothing, as the
dynamic slot holds a reference, while the title made a second copy).
Those slots are reported again with key 0, as before the key was carried;
they are never put back to waiting, only counted as blocking. Test:
`a_dynamic_slot_showing_a_texture_still_blocks_its_eviction`.

`SLOT_LOOKING` is now cleared by a drop guard, so a look that panics does
not stop every later look.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b23c0c4038)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The workers that read and unpack the world run below normal priority
(VICTORY_DSTORAGE_PRIORITY defaults to -1) while the layer's helpers run
above normal (VICTORY_HELPER_PRIORITY=1). Driving fast, with every core
busy, they lost out: 85 to 239 slots of the texture queue at a time were
waiting for their memory, and the world came in late and low in detail.
At normal priority it came in somewhat sooner at speed, though still late
in the fastest cars; the frame rate was the same within noise.

RTX 5090 32 GB, Ryzen 7 9800X3D, 62 GB RAM, Windows 11, game files on an
NVMe SSD, Series X profile, 3840x2160 output, DLSS Quality.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 23:48:07 +00:00
github-bot force-pushed github-bot/gh-4604 from 621da539af to 8e47ba7981 2026-12-01 00:35:20 +00:00 Compare
Author
Owner

@⁠pwnEvery1 on GitHub · 2026-12-01 00:50 UTC · original

you should disable the cpu's graphic card cause it take 2gb of ram so it's useless.

**@⁠pwnEvery1** on GitHub · 2026-12-01 00:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4604#issuecomment-7296799691) you should disable the cpu's graphic card cause it take 2gb of ram so it's useless.
github-bot closed this pull request 2026-12-01 01:47:07 +00:00
Author
Owner

@⁠isgti07-hub on GitHub · 2026-12-01 01:42 UTC · original

Closing in favour of #4640, which sets the same priority with measurements and also cuts the worker count.

**@⁠isgti07-hub** on GitHub · 2026-12-01 01:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4604#issuecomment-7297810077) Closing in favour of #4640, which sets the same priority with measurements and also cuts the worker count.

Pull request closed

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/trustno1-coder--VIctory-NVIDIA!4605
No description provided.