perf(gpu): offload texture detiling to GPU compute and enable VICTORY_LEVELS_ON_DEMAND by default #235

Closed
opened 2026-12-01 20:21:00 +00:00 by github-bot · 1 comment
Owner

@⁠Androtim on GitHub · 2026-11-30 10:17 UTC · original

Measured on RTX 4060 Ti 8 GB (Series X 1440p -PlayParity, warm shader cache, <playtest-log>):

  • Texture refreshes across threads: 9.5–16.5 ms/frame (with 3.7–3.8 ms asking write watch/guards, remainder CPU reading, hashing, and detiling).
  • Texture upload queue: 25,081–26,002 slots still waiting in queue at end of 45s capture (max waiting 37,511), VICTORY_LEVELS_ON_DEMAND disabled under -PlayParity (VICTORY_LEVELS_ON_DEMAND=0).

Proposed Direction

  • Offload BC/tiled texture detiling from CPU worker threads to GPU compute shaders.
  • Enable on-demand mip streaming (VICTORY_LEVELS_ON_DEMAND=1) by default once streaming stability & 8 GiB VRAM residency gates are solid.

Related to #170.

**@⁠Androtim** on GitHub · 2026-11-30 10:17 UTC · [original](https://github.com/Androtim/MiniVI/issues/235) Measured on RTX 4060 Ti 8 GB (Series X 1440p `-PlayParity`, warm shader cache, `<playtest-log>`): - Texture refreshes across threads: `9.5–16.5 ms/frame` (with `3.7–3.8 ms` asking write watch/guards, remainder CPU reading, hashing, and detiling). - Texture upload queue: `25,081–26,002` slots still waiting in queue at end of 45s capture (max waiting `37,511`), `VICTORY_LEVELS_ON_DEMAND` disabled under `-PlayParity` (`VICTORY_LEVELS_ON_DEMAND=0`). ### Proposed Direction - Offload BC/tiled texture detiling from CPU worker threads to GPU compute shaders. - Enable on-demand mip streaming (`VICTORY_LEVELS_ON_DEMAND=1`) by default once streaming stability & 8 GiB VRAM residency gates are solid. Related to #170.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:21:00 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 14:18 UTC · original

Closing as superseded by #276.

**@⁠Androtim** on GitHub · 2026-12-02 14:18 UTC · [original](https://github.com/Androtim/MiniVI/issues/235#issuecomment-7348317390) Closing as superseded by #276.
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/Androtim--MiniVI#235
No description provided.