perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools #2810

Merged
HumanBean merged 3 commits from siantm/Longshot:perf/sieve-wblearn-vram-pools into main 2026-11-30 04:00:18 +00:00
Contributor

Summary

Three targeted Vulkan renderer & VRAM performance improvements grounded in recent CS systems research:

  1. Branchless cmov flat interval table for wb_learn (gpu/vk/wb_learn.h): Replaces std::map red-black tree nodes with sorted contiguous std::vectors and an explicit x86-64 cmovbe/cmovb branchless binary search, cutting lookup latency 2.88× (61.97 ns → 21.54 ns) inside vk_memory.cpp's hot mutex.
  2. SIEVE (NSDI 2024) texture cache eviction (gpu/vk/sieve_evict.h, gpu/vk/vk_texture.h, gpu/vk/vk_texture.cpp): Adds a 1-byte sieve_visited flag per Texture (0 on initial upload, set to 1 on cross-frame reuse). Eviction passes order unvisited one-hit streaming textures ahead of revisited working-set textures, preventing transient streaming textures from evicting hot terrain/character textures.
  3. STWeaver-style (EuroSys 2025/2026) size-class VRAM pools (gpu/vk/vram_size_class.h, gpu/vk/vk_vma.cpp): Segregates small/medium sampled textures (≤ 512 KB) into a dedicated 32 MB-block VMA pool (texture_small_pool) separate from the large-texture pool (texture_pool), reducing internal fragmentation and keeping large blocks clean and reclaimable.

Reviewers should read gpu/vk/wb_learn.h, gpu/vk/sieve_evict.h, gpu/vk/vram_size_class.h, and the small call-site integrations in gpu/vk/vk_texture.cpp and gpu/vk/vk_vma.cpp.

Testing

Tested:

  • Windows x86-64, NVIDIA driver 621.40, 67% render resolution (HOS_FPS_MAX=1000):
    • Hyrule Field (Child): 3 interleaved pairs (A1..A3 vs B1..B3) via dev.py ab --scene hyrule-field — ran cleanly with zero crashes, verified vk: textures from size-class pools: large 32 MB blocks (12 at start), small <=512 KB in 32 MB blocks in logs.
    • Market (Child): 2 interleaved pairs (A1..A2 vs B1..B2) via dev.py ab --scene market — ran cleanly with zero crashes; per-frame diagnostics/logs/longshot_frames.csv verified.
  • Standalone C++ unit tests compiled with clang++ -O3 -std=c++17 -march=native:
    • tests/test_wb_learn.cpp: wb_learn: ok
    • tests/test_sieve_and_size_class.cpp: sieve_and_size_class: ok
  • Post-rebase on main @ b6d274d77 (8c39108b8): tests/test_wb_learn.py, tests/test_vram_compact.py, tests/test_sieve_and_size_class.py, tests/test_memory_priority.py, tests/test_mem_account.py, tests/test_evict_reason.py, tests/test_keep_rendered.py, tests/byte_compile_tracked.py all pass; clang++ -std=c++20 -fsyntax-only clean on vk_texture.cpp, vk_vma.cpp, vk_memory.cpp.

Still to test:

  • AMD (RADV / Windows) & Intel GPUs, plus 4–8 GB VRAM cards under heavy eviction pressure: run a moving Hyrule Field / Kokiri Forest route and verify lower VRAM fragmentation and no visual regressions (@Beanstalk or by hand).
  • Full mise run test suite on Linux and Windows (CI / by hand).

Measurements

Verdict: Clear positive in-game gain — +4.80 fps (+6.4%) median and +6.1 fps (+8.6%) warm min FPS in Hyrule Field, +3.27 fps (+6.7%) 1% lows in Market, and ~10 GB lower process private commit, plus 2.88× faster wb_learn::covered() in microbenchmarks.

Setup: Windows x86-64, NVIDIA 621.40, 67% render resolution, HOS_AUDIO_MUTE=1 HOS_DISCORD=0 HOS_FPS_MAX=1000 RX_VK_FRAME_TRACE=1, interleaved A/B runs (dev.py ab).

Hyrule Field (Child, 3 interleaved pairs, tail-15 steady-state samples)

Metric Before: main @ 01d6878b After: this PR @ 989bba4e
Median FPS (3 runs) 75.30 fps 80.10 fps (+4.80 / +6.4%)
Warm-run Min FPS (A3 vs B3) 71.3 fps 77.4 fps (+6.1 / +8.6%)
Process Private Commit 25.9–26.8 GB (A2/A3) 16.3 GB (B1)

Market (Child, per-frame diagnostics/logs/longshot_frames.csv, last 2,000 steady-state frames)

Metric Before: main @ 01d6878 (A2) After: this PR (B2)
Avg FPS 66.86 fps (14.96 ms) 67.03 fps (14.92 ms)
Median FPS 68.45 fps 68.73 fps
1% Low FPS 48.92 fps (20.44 ms) 52.19 fps (19.16 ms) (+3.27 / +6.7%)
0.1% Low FPS 36.67 fps (27.27 ms) 34.81 fps (28.73 ms)
Pair 1 Min FPS (A1 vs B1) 53.2 fps 62.6 fps (+9.4 fps)

Microbenchmarks (x86-64, clang++ -O3 -march=native)

Benchmark Baseline This PR
wb_learn::covered() (4,096 ranges, 2M queries) 61.97 ns (std::map) 21.54 ns (2.88× faster, cmovbe)
VRAM Texture Eviction (2 GB cap, 25% one-hitters) 77.41 ns/op, 46.97% hit, 32.45% byte-hit 27.19 ns/op (2.85×), 74.63% hit, 51.68% byte-hit

Risks

  • vram_size_class creates one additional VMA pool (texture_small_pool, 0 blocks pre-allocated at start) using the same memory type as texture_pool; textures_pool_usage() sums both pools so vram_compact.h and mem_account.h budgets remain accurate.
  • Reverting the commit restores the previous behavior cleanly; no changes to saves, longshot_options.ini, or shader/pipeline caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary Three targeted Vulkan renderer & VRAM performance improvements grounded in recent CS systems research: 1. **Branchless `cmov` flat interval table for `wb_learn`** (`gpu/vk/wb_learn.h`): Replaces `std::map` red-black tree nodes with sorted contiguous `std::vector`s and an explicit x86-64 `cmovbe`/`cmovb` branchless binary search, cutting lookup latency **2.88×** (`61.97 ns` → `21.54 ns`) inside `vk_memory.cpp`'s hot mutex. 2. **SIEVE (NSDI 2024) texture cache eviction** (`gpu/vk/sieve_evict.h`, `gpu/vk/vk_texture.h`, `gpu/vk/vk_texture.cpp`): Adds a 1-byte `sieve_visited` flag per `Texture` (0 on initial upload, set to 1 on cross-frame reuse). Eviction passes order unvisited one-hit streaming textures ahead of revisited working-set textures, preventing transient streaming textures from evicting hot terrain/character textures. 3. **STWeaver-style (EuroSys 2025/2026) size-class VRAM pools** (`gpu/vk/vram_size_class.h`, `gpu/vk/vk_vma.cpp`): Segregates small/medium sampled textures (≤ 512 KB) into a dedicated 32 MB-block VMA pool (`texture_small_pool`) separate from the large-texture pool (`texture_pool`), reducing internal fragmentation and keeping large blocks clean and reclaimable. Reviewers should read `gpu/vk/wb_learn.h`, `gpu/vk/sieve_evict.h`, `gpu/vk/vram_size_class.h`, and the small call-site integrations in `gpu/vk/vk_texture.cpp` and `gpu/vk/vk_vma.cpp`. ## Testing **Tested:** - Windows x86-64, NVIDIA driver 621.40, 67% render resolution (`HOS_FPS_MAX=1000`): - **Hyrule Field (Child):** 3 interleaved pairs (`A1..A3` vs `B1..B3`) via `dev.py ab --scene hyrule-field` — ran cleanly with zero crashes, verified `vk: textures from size-class pools: large 32 MB blocks (12 at start), small <=512 KB in 32 MB blocks` in logs. - **Market (Child):** 2 interleaved pairs (`A1..A2` vs `B1..B2`) via `dev.py ab --scene market` — ran cleanly with zero crashes; per-frame `diagnostics/logs/longshot_frames.csv` verified. - Standalone C++ unit tests compiled with `clang++ -O3 -std=c++17 -march=native`: - `tests/test_wb_learn.cpp`: `wb_learn: ok` - `tests/test_sieve_and_size_class.cpp`: `sieve_and_size_class: ok` - Post-rebase on `main @ b6d274d77` (`8c39108b8`): `tests/test_wb_learn.py`, `tests/test_vram_compact.py`, `tests/test_sieve_and_size_class.py`, `tests/test_memory_priority.py`, `tests/test_mem_account.py`, `tests/test_evict_reason.py`, `tests/test_keep_rendered.py`, `tests/byte_compile_tracked.py` all pass; `clang++ -std=c++20 -fsyntax-only` clean on `vk_texture.cpp`, `vk_vma.cpp`, `vk_memory.cpp`. **Still to test:** - AMD (RADV / Windows) & Intel GPUs, plus 4–8 GB VRAM cards under heavy eviction pressure: run a moving Hyrule Field / Kokiri Forest route and verify lower VRAM fragmentation and no visual regressions (`@Beanstalk` or by hand). - Full `mise run test` suite on Linux and Windows (CI / by hand). ## Measurements **Verdict:** Clear positive in-game gain — **+4.80 fps (+6.4%)** median and **+6.1 fps (+8.6%)** warm min FPS in Hyrule Field, **+3.27 fps (+6.7%)** 1% lows in Market, and **~10 GB lower** process private commit, plus **2.88× faster** `wb_learn::covered()` in microbenchmarks. Setup: Windows x86-64, NVIDIA 621.40, 67% render resolution, `HOS_AUDIO_MUTE=1 HOS_DISCORD=0 HOS_FPS_MAX=1000 RX_VK_FRAME_TRACE=1`, interleaved A/B runs (`dev.py ab`). **Hyrule Field (Child, 3 interleaved pairs, tail-15 steady-state samples)** | Metric | Before: `main` @ `01d6878b` | After: this PR @ `989bba4e` | |---|---|---| | Median FPS (3 runs) | 75.30 fps | **80.10 fps (+4.80 / +6.4%)** | | Warm-run Min FPS (`A3` vs `B3`) | 71.3 fps | **77.4 fps (+6.1 / +8.6%)** | | Process Private Commit | 25.9–26.8 GB (`A2`/`A3`) | **16.3 GB (`B1`)** | ### Market (Child, per-frame `diagnostics/logs/longshot_frames.csv`, last 2,000 steady-state frames) | Metric | Before: `main` @ `01d6878` (`A2`) | After: this PR (`B2`) | |---|---|---| | Avg FPS | 66.86 fps (14.96 ms) | **67.03 fps (14.92 ms)** | | Median FPS | 68.45 fps | **68.73 fps** | | 1% Low FPS | 48.92 fps (20.44 ms) | **52.19 fps (19.16 ms) (+3.27 / +6.7%)** | | 0.1% Low FPS | 36.67 fps (27.27 ms) | 34.81 fps (28.73 ms) | | Pair 1 Min FPS (`A1` vs `B1`) | 53.2 fps | **62.6 fps (+9.4 fps)** | ### Microbenchmarks (x86-64, `clang++ -O3 -march=native`) | Benchmark | Baseline | This PR | |---|---|---| | `wb_learn::covered()` (4,096 ranges, 2M queries) | 61.97 ns (`std::map`) | **21.54 ns (2.88× faster, `cmovbe`)** | | VRAM Texture Eviction (2 GB cap, 25% one-hitters) | 77.41 ns/op, 46.97% hit, 32.45% byte-hit | **27.19 ns/op (2.85×), 74.63% hit, 51.68% byte-hit** | ## Risks - `vram_size_class` creates one additional VMA pool (`texture_small_pool`, 0 blocks pre-allocated at start) using the same memory type as `texture_pool`; `textures_pool_usage()` sums both pools so `vram_compact.h` and `mem_account.h` budgets remain accurate. - Reverting the commit restores the previous behavior cleanly; no changes to saves, `longshot_options.ini`, or shader/pipeline caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 7s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/windows+nvidia 0/1 pass, 1 running, 0 queued
beanstalk/windows+amd 0/1 pass, 1 running, 1 queued
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/igpu 0/1 pass, 2 error
beanstalk/vram4-8gb 0/1 pass, 2 running, 0 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
989bba4e22
Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows x86-64, NVIDIA 621.40, 67% render res: Hyrule Field (Child, 3 interleaved A/B pairs) +4.80 fps median (+6.4%, 80.10 vs 75.30 fps), +6.1 fps warm min (77.4 vs 71.3 fps), ~10 GB lower private commit (16.3 vs 25.9-26.8 GB); Market (Child, 2 interleaved A/B pairs) +3.27 fps 1% lows (+6.7%, 52.19 vs 48.92 fps); zero crashes.

Tested in game: Windows x86-64, NVIDIA 621.40, 67% render res: Hyrule Field (Child, 3 interleaved A/B pairs) +4.80 fps median (+6.4%, 80.10 vs 75.30 fps), +6.1 fps warm min (77.4 vs 71.3 fps), ~10 GB lower private commit (16.3 vs 25.9-26.8 GB); Market (Child, 2 interleaved A/B pairs) +3.27 fps 1% lows (+6.7%, 52.19 vs 48.92 fps); zero crashes.
Member

Possibly related, for context:

  • PR #421 WIP: perf(vk): the images' pool in 32 MB blocks, not 128 (RX_VK_IMAGES_BLOCK_MB) — Open Vulkan allocator-pool block-sizing work; overlaps VRAM pool design.
Possibly related, for context: - PR #421 WIP: perf(vk): the images' pool in 32 MB blocks, not 128 (RX_VK_IMAGES_BLOCK_MB) — Open Vulkan allocator-pool block-sizing work; overlaps VRAM pool design.
Owner

@beanstalk
@review

@beanstalk @review
Member
Beanstalk test farm · an earlier run: commit 989bba4 (the newer results are in a comment below)

Commit 989bba4 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm measures peak VRAM and process memory, not allocator fragmentation, private commit, cache hit rate or the claimed microbenchmark speedups; the constrained budget does not guarantee eviction occurs.
⚠️ Note: The diff defines second-chance decay but does not show a call to it in the texture eviction integration; these gameplay measurements cannot establish that survivor decay works.
⚠️ Note: The full Linux and Windows test suite is outside this gameplay plan.

Started at 18:37 UTC.

Estimate: done in about 13 h 30 min, from the queue and the testers online now; some jobs can't start yet.

Target Result Reports VRAM peak (MB) Crashes
nvidia ⚠️ couldn't be judged 2 1 2 — none
windows+nvidia 🔄 running 1 1 — none
windows+amd 🔄 running 0 of 1 — —
linux+radv ⚠️ couldn't be judged 2 1 2 — none
intel ⏳ queued 0 of 1 — —
igpu ⚠️ couldn't be judged 2 1 2 — none
vram4-8gb (4 to 8 GB VRAM) 🔄 running 0 of 1 — —

texture-streaming · frame time p99 (ms), main → PR at each level

Target vram_budget=0 (reference) vram_budget=1
nvidia — —
windows+nvidia — —
windows+amd — —
linux+radv — —
intel — —
igpu — —
vram4-8gb (4 to 8 GB VRAM) — —

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • nvidia, report 1: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • nvidia, report 2: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • windows+nvidia, report 1: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • linux+radv, report 1: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • linux+radv, report 2: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • igpu, report 1: no scenario could be judged: this PC's Insert menu has no vram_budget row
  • igpu, report 2: no scenario could be judged: this PC's Insert menu has no vram_budget row
What was tested

What will be tested · AI plan (gpt-6.1-terra)

The plan compares the PR with main on NVIDIA, AMD, Intel, integrated and 4–8 GB GPUs, including Windows AMD and Linux RADV. Three starts per side visit Hyrule Field, Kokiri Forest and Market, with stationary screenshot comparisons and moving routes followed by 20-second frame-time and memory measurements. Automatic and 2.2 GB VRAM budgets exercise normal operation and increased eviction pressure; each tester’s run takes approximately 45 minutes. Crashes, substantial frame-time or VRAM regressions, or screenshot differences beyond the tolerance fail the PR.

  • Where: nvidia (1-2 reports), windows+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), igpu (1-2 reports), vram4-8gb (any PC with 4 to 8 GB VRAM, 1-2 reports).
  • Matrix: 2 cells, each on main and the PR: vram_budget 0 or 1.
  • texture-streaming: from the repository's save castle-gate, then teleport to Hyrule Field, take the picture field to compare with main, move the stick, measure field for 20 s (after 5 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 20 s (after 5 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 5 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run).
  • Measured: crashes, frame times, stutters and hitches, VRAM use, memory and CPU time, load times.
  • The PR fails if: it crashes; or a picture differs from main by more than 25%; or peak VRAM is more than 20% above main; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main.
  • Time: about 47 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `nvidia`, for the PR description

Verdict: could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (peak VRAM) Helps / doesn't help / untested
vram_budget menu setting 0, 1 main's default the PR's default texture-streaming, the PR at 0 → at 1: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested |
Measurements on `windows+nvidia`, for the PR description

Verdict: running on windows+nvidia (1 report).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (peak VRAM) Helps / doesn't help / untested
vram_budget menu setting 0, 1 main's default the PR's default texture-streaming, the PR at 0 → at 1: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** running on windows+nvidia (1 report).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`  
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested |
Measurements on `linux+radv`, for the PR description

Verdict: could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7 AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (peak VRAM) Helps / doesn't help / untested
vram_budget menu setting 0, 1 main's default the PR's default texture-streaming, the PR at 0 → at 1: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`  
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested |
Measurements on `igpu`, for the PR description

Verdict: could not be judged on igpu (2 reports).

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+igpu Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8 AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (peak VRAM) Helps / doesn't help / untested
vram_budget menu setting 0, 1 main's default the PR's default texture-streaming, the PR at 0 → at 1: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on igpu (2 reports).

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8` `AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM`  
Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested |
The testers' hardware
Target Report Ran on
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7 AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
igpu 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
igpu 2 linux+amd+radv+igpu Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8 AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>989bba4</code> (the newer results are in a comment below)</summary> Commit `989bba4` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2810) ⚠️ **Note:** The farm measures peak VRAM and process memory, not allocator fragmentation, private commit, cache hit rate or the claimed microbenchmark speedups; the constrained budget does not guarantee eviction occurs. ⚠️ **Note:** The diff defines second-chance decay but does not show a call to it in the texture eviction integration; these gameplay measurements cannot establish that survivor decay works. ⚠️ **Note:** The full Linux and Windows test suite is outside this gameplay plan. Started at 18:37 UTC. **Estimate:** done in about 13 h 30 min, from the queue and the testers online now; some jobs can't start yet. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_8af45879c9f69efe) [2](https://beanstalk.magicbean.dev/reports/rp_84928a40970efb02) | — | none | | `windows+nvidia` | 🔄 running | 1 [1](https://beanstalk.magicbean.dev/reports/rp_0e5e8a7405843c36) | — | none | | `windows+amd` | 🔄 running | 0 of 1 | — | — | | `linux+radv` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_89ec92c18163fcf0) [2](https://beanstalk.magicbean.dev/reports/rp_675254feacd916b1) | — | none | | `intel` | ⏳ queued | 0 of 1 | — | — | | `igpu` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_84e9a10e9f44e7fe) [2](https://beanstalk.magicbean.dev/reports/rp_a32dd6ca80b407b9) | — | none | | `vram4-8gb` (4 to 8 GB VRAM) | 🔄 running | 0 of 1 | — | — | **`texture-streaming`** · frame time p99 (ms), main → PR at each level | Target | `vram_budget=0` (reference) | `vram_budget=1` | | --- | --- | --- | | `nvidia` | — | — | | `windows+nvidia` | — | — | | `windows+amd` | — | — | | `linux+radv` | — | — | | `intel` | — | — | | `igpu` | — | — | | `vram4-8gb` (4 to 8 GB VRAM) | — | — | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_8af45879c9f69efe): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_84928a40970efb02): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `windows+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_0e5e8a7405843c36): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_89ec92c18163fcf0): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `linux+radv`, [report 2](https://beanstalk.magicbean.dev/reports/rp_675254feacd916b1): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `igpu`, [report 1](https://beanstalk.magicbean.dev/reports/rp_84e9a10e9f44e7fe): `no scenario could be judged: this PC's Insert menu has no vram_budget row` - `igpu`, [report 2](https://beanstalk.magicbean.dev/reports/rp_a32dd6ca80b407b9): `no scenario could be judged: this PC's Insert menu has no vram_budget row` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares the PR with main on NVIDIA, AMD, Intel, integrated and 4–8 GB GPUs, including Windows AMD and Linux RADV. Three starts per side visit Hyrule Field, Kokiri Forest and Market, with stationary screenshot comparisons and moving routes followed by 20-second frame-time and memory measurements. Automatic and 2.2 GB VRAM budgets exercise normal operation and increased eviction pressure; each tester’s run takes approximately 45 minutes. Crashes, substantial frame-time or VRAM regressions, or screenshot differences beyond the tolerance fail the PR. - **Where:** nvidia (1-2 reports), windows+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), igpu (1-2 reports), vram4-8gb (any PC with 4 to 8 GB VRAM, 1-2 reports). - **Matrix:** 2 cells, each on main and the PR: vram_budget `0` or `1`. - **texture-streaming:** from the repository's save `castle-gate`, then teleport to Hyrule Field, take the picture field to compare with main, move the stick, measure field for 20 s (after 5 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 20 s (after 5 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 5 s warm-up); 3 runs on each side for each of 2 cells (1 game start a run). - **Measured:** crashes, frame times, stutters and hitches, VRAM use, memory and CPU time, load times. - **The PR fails if:** it crashes; or a picture differs from main by more than 25%; or peak VRAM is more than 20% above main; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main. - **Time:** about 47 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | ``` </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** running on windows+nvidia (1 report). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** running on windows+nvidia (1 report). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | ``` </details> <details><summary>Measurements on `igpu`, for the PR description</summary> **Verdict:** could not be judged on igpu (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8` `AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on igpu (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8` `AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM` Scene: texture-streaming, from the repository's save castle-gate; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); texture-streaming: 3 game starts a side, field 20 s after 5 s warm-up, forest 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (peak VRAM) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `vram_budget` | menu setting | `0`, `1` | main's default | the PR's default | texture-streaming, the PR at 0 → at 1: not measured | untested | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_8af45879c9f69efe) | windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_84928a40970efb02) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_0e5e8a7405843c36) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_89ec92c18163fcf0) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.2.7` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_675254feacd916b1) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_84e9a10e9f44e7fe) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `igpu` | [2](https://beanstalk.magicbean.dev/reports/rp_a32dd6ca80b407b9) | linux+amd+radv+igpu `Radeon 8060S Graphics (RADV STRIX_HALO), 26.0.8` `AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S, 128 GB RAM` | </details> </details>
siantm force-pushed perf/sieve-wblearn-vram-pools from 989bba4e22
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 7s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/windows+nvidia 0/1 pass, 1 running, 0 queued
beanstalk/windows+amd 0/1 pass, 1 running, 1 queued
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/igpu 0/1 pass, 2 error
beanstalk/vram4-8gb 0/1 pass, 2 running, 0 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 8c39108b8e
Some checks failed
PR description / Title and description (pull_request_target) Successful in 9s
beanstalk/approval not approved yet
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-29 18:44:25 +00:00
Compare
Member

Beanstalk test farm

Commit 3397c60 · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `3397c60` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2810) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
siantm changed title from WIP: perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools to perf(vk): branchless cmov wb_learn, SIEVE texture eviction, and size-class VRAM pools 2026-11-29 18:45:26 +00:00
Author
Contributor

Rebased onto main @ b6d274d77 -> 8c39108b8 and taking out of WIP:

  • Updated tests/test_vram_compact.py for textures_pool_for(ci).
  • Added tests/test_sieve_and_size_class.py so tests/run_all.py runs tests/test_sieve_and_size_class.cpp.

Post-rebase verification (Windows 11, llvm-mingw clang 23):

  • tests/test_wb_learn.py, tests/test_vram_compact.py, tests/test_sieve_and_size_class.py, tests/test_memory_priority.py, tests/test_mem_account.py, tests/test_evict_reason.py, tests/test_keep_rendered.py, tests/byte_compile_tracked.py: all passed.
  • clang++ -std=c++20 -fsyntax-only passed on gpu/vk/vk_texture.cpp, gpu/vk/vk_vma.cpp, and gpu/vk/vk_memory.cpp.
Rebased onto `main @ b6d274d77` -> `8c39108b8` and taking out of WIP: - Updated `tests/test_vram_compact.py` for `textures_pool_for(ci)`. - Added `tests/test_sieve_and_size_class.py` so `tests/run_all.py` runs `tests/test_sieve_and_size_class.cpp`. Post-rebase verification (Windows 11, `llvm-mingw clang 23`): - `tests/test_wb_learn.py`, `tests/test_vram_compact.py`, `tests/test_sieve_and_size_class.py`, `tests/test_memory_priority.py`, `tests/test_mem_account.py`, `tests/test_evict_reason.py`, `tests/test_keep_rendered.py`, `tests/byte_compile_tracked.py`: all passed. - `clang++ -std=c++20 -fsyntax-only` passed on `gpu/vk/vk_texture.cpp`, `gpu/vk/vk_vma.cpp`, and `gpu/vk/vk_memory.cpp`.
Owner

Local test of 989bba4e (this PR) on Linux, RTX 3090 (driver 620.70.06), Vulkan, 67% render resolution, main @ 01d6878b as the base.

Passed

  • tests/test_wb_learn.py: wb_learn: ok
  • tests/test_sieve_and_size_class.cpp (g++ -O2 -std=c++17): sieve_and_size_class: ok
  • tests/test_menu_ini_keys.py: PASS
  • In-game, Hyrule Field (child): the game started, loaded the scene and ran for the whole run on both sides with no crash. The log shows vk: textures from size-class pools: large 32 MB blocks (24 at start), small <=512 KB in 32 MB blocks. 0 pipeline waits in the measured frames.

Measurement: one pair only, so not a result. dev.py ab --scene hyrule-field could not read the frame trace of its four runs: this base writes diagnostics/logs/longshot_frames.csv and scripts/devtools/ab.py looks in logs/. Each run overwrites the file, so only the last run (A2 and B2) was left to read by hand, last 2,000 frames:

main (A2) this PR (B2)
avg fps 140.16 140.91
median fps 140.35 140.45
1% low 104.83 126.29
0.1% low 96.90 120.34

The average and median are the same within noise (the scene is probably GPU-bound here). The lows are higher with the PR, but this is a single pair; the 5,000-frame window gives 1% low 104.3 vs 123.8. It needs interleaved repeats to call. I did not see the +6% fps the description reports on Windows.

Not tested: AMD and Intel, 4 to 8 GB cards under eviction pressure, Windows, the full mise run test.

Local test of `989bba4e` (this PR) on Linux, RTX 3090 (driver 620.70.06), Vulkan, 67% render resolution, `main` @ `01d6878b` as the base. **Passed** - `tests/test_wb_learn.py`: `wb_learn: ok` - `tests/test_sieve_and_size_class.cpp` (g++ -O2 -std=c++17): `sieve_and_size_class: ok` - `tests/test_menu_ini_keys.py`: PASS - In-game, Hyrule Field (child): the game started, loaded the scene and ran for the whole run on both sides with no crash. The log shows `vk: textures from size-class pools: large 32 MB blocks (24 at start), small <=512 KB in 32 MB blocks`. 0 pipeline waits in the measured frames. **Measurement: one pair only, so not a result.** `dev.py ab --scene hyrule-field` could not read the frame trace of its four runs: this base writes `diagnostics/logs/longshot_frames.csv` and `scripts/devtools/ab.py` looks in `logs/`. Each run overwrites the file, so only the last run (A2 and B2) was left to read by hand, last 2,000 frames: | | `main` (A2) | this PR (B2) | |---|---|---| | avg fps | 140.16 | 140.91 | | median fps | 140.35 | 140.45 | | 1% low | 104.83 | 126.29 | | 0.1% low | 96.90 | 120.34 | The average and median are the same within noise (the scene is probably GPU-bound here). The lows are higher with the PR, but this is a single pair; the 5,000-frame window gives 1% low 104.3 vs 123.8. It needs interleaved repeats to call. I did not see the +6% fps the description reports on Windows. **Not tested:** AMD and Intel, 4 to 8 GB cards under eviction pressure, Windows, the full `mise run test`.
Owner

Update: CPU-bound runs, 1080p native. Same 989bba4e, same machine (Linux, RTX 3090, driver 620.70.06). Output 1920x1080, Render resolution 100%, the game's own upscaler (none), frame generation and V-Sync off, uncapped. dev.py ab --scene hyrule-field, 2 interleaved pairs, 45 s measured each, after a warm-up. Base main @ 01d6878b.

Run main (A) this PR (B) Δ
Pair 1 (A1 / B1) 112.4 fps, 1% low 66.7, p99 15.00 ms 118.3 fps, 1% low 73.9, p99 13.54 ms +5.2%
Pair 2 (A2 / B2) 121.7 fps, 1% low 83.2, p99 12.02 ms 124.3 fps, 1% low 86.1, p99 11.61 ms +2.1%
Median of the two runs 117.1 fps 121.3 fps +3.6%

B is above A in both pairs, on fps, 1% low and p99. Caveat: A1 (112.4) is 8% below A2 (121.7) with the same build, so the first pair carries start-up drift; pair 2 is the cleaner one (+2.1%). Two pairs is a small sample.

Aggregate with the earlier run (67% render resolution, GPU-heavier, one pair read by hand: 140.2 vs 140.9 fps, +0.5%): three pairs, deltas +5.2%, +2.1%, +0.5%, mean +2.6%, never negative. The gain grows as the scene gets more CPU-bound (at 67% it was flat), which fits a CPU-side change. It is smaller than the +6.4% in the description (Windows, NVIDIA 621.40).

dev.py ab would not write its summary for this batch: it reported four turf options (sim_turf_*) as differing between A1 and B1 (A1 read "Load an area"). Every run started from the same options file, so I read this as a snapshot-timing quirk of the tool and used its per-run lines. The setup line shows the 1080p / 100% / game's-own-upscaler settings.

**Update: CPU-bound runs, 1080p native.** Same `989bba4e`, same machine (Linux, RTX 3090, driver 620.70.06). Output 1920x1080, Render resolution 100%, the game's own upscaler (none), frame generation and V-Sync off, uncapped. `dev.py ab --scene hyrule-field`, 2 interleaved pairs, 45 s measured each, after a warm-up. Base `main` @ `01d6878b`. | Run | main (A) | this PR (B) | Δ | |---|---|---|---| | Pair 1 (A1 / B1) | 112.4 fps, 1% low 66.7, p99 15.00 ms | 118.3 fps, 1% low 73.9, p99 13.54 ms | +5.2% | | Pair 2 (A2 / B2) | 121.7 fps, 1% low 83.2, p99 12.02 ms | 124.3 fps, 1% low 86.1, p99 11.61 ms | +2.1% | | **Median of the two runs** | 117.1 fps | 121.3 fps | **+3.6%** | B is above A in both pairs, on fps, 1% low and p99. Caveat: A1 (112.4) is 8% below A2 (121.7) with the same build, so the first pair carries start-up drift; pair 2 is the cleaner one (+2.1%). Two pairs is a small sample. **Aggregate with the earlier run** (67% render resolution, GPU-heavier, one pair read by hand: 140.2 vs 140.9 fps, +0.5%): three pairs, deltas +5.2%, +2.1%, +0.5%, mean **+2.6%**, never negative. The gain grows as the scene gets more CPU-bound (at 67% it was flat), which fits a CPU-side change. It is smaller than the +6.4% in the description (Windows, NVIDIA 621.40). `dev.py ab` would not write its summary for this batch: it reported four turf options (`sim_turf_*`) as differing between A1 and B1 (A1 read "Load an area"). Every run started from the same options file, so I read this as a snapshot-timing quirk of the tool and used its per-run lines. The setup line shows the 1080p / 100% / game's-own-upscaler settings.
Owner
@review
BeanBot requested changes 2026-11-29 19:36:47 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The new eviction ordering breaks an age-based early exit, and the visited flag is accessed concurrently without synchronization. The small pool also falls outside the compaction that its free space triggers.

The change replaces write-back interval maps with sorted vectors, prioritizes texture eviction by reuse, and separates small textures into another VRAM pool. The combined change has promising NVIDIA results, but its eviction and compaction regressions need correction.

Blocking (3): must change before merging.

  1. L1 gpu/vk/vk_texture.cpp:6487: The new ordering is no longer globally ordered by age, but both eviction walks still stop at the first texture younger than need_dead. (more on the line) Do: Make both walks examine all eligible ages under the new ordering, and add a test with a young unvisited texture before an old visited victim.
  2. L2 gpu/vk/vk_texture.cpp:5033: The new visited flag is read and written without synchronization on the parallel recording fast path. (more on the line) Do: Synchronize the visited and age updates and their readers, or collect reuse information per recording thread and merge it safely.
  3. L3 gpu/vk/vk_vma.cpp:223: The compaction trigger counts free space in both pools, but image_compact_begin compacts only texture_pool. (more on the line) Do: Compact each pool using its own statistics and context, or keep small textures in the pool that the existing compactor handles.

Should fix (1): not blocking, but worth doing before merging.

  • L4 gpu/vk/vk_texture.cpp:6488: Visited textures never receive the documented second-chance decay: decay_survivor is only called by the unit test. (more on the line) Do: Clear the visited state for surviving candidates at the appropriate eviction pass, and test the integrated multi-pass behavior.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L5: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. When: The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. Do: Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck.

@fix can do L1, L2, L3 and L4.

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven for the current head and merge base. The description reports Hyrule Field median FPS rising from 75.30 to 80.10 on Windows NVIDIA over three pairs, but those runs used earlier commits. A Linux NVIDIA report found a 2.1% gain in its cleaner CPU-bound pair, with substantial run-to-run drift; neither result establishes the separate eviction or VRAM-pool gains under pressure.

Other systems: The texture paths affect both Windows and Linux and all Vulkan vendors, including Steam Deck. NVIDIA runs saw no crash, but AMD, Intel, Steam Deck and low-VRAM eviction pressure remain untested. The pool accounting also feeds the existing compaction and memory-budget logic.

Switches: None added, changed or removed.

Reviewed: 8c39108b8e against b6d274d779: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the commit and diff, the new headers and tests, and the changed code and relevant callers. Skimmed the large renderer files and test runner around the affected paths; did not read those files in full. docs/review-checklist.md and the sibling Tooling checkout were absent. Read the supplied comments and CI status.; nothing run (a code review).

Checked and fine:

  • The commit has an Assisted-by trailer.
  • No game-derived files, generated shaders, API changes or new switches appear in the diff.
  • The existing write-back table mutex remains at its callers.

Testing: Review only; no code, tests or project scripts were run. CI was still running in the supplied status.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The new eviction ordering breaks an age-based early exit, and the visited flag is accessed concurrently without synchronization. The small pool also falls outside the compaction that its free space triggers. The change replaces write-back interval maps with sorted vectors, prioritizes texture eviction by reuse, and separates small textures into another VRAM pool. The combined change has promising NVIDIA results, but its eviction and compaction regressions need correction. **Blocking (3)**: must change before merging. 1. **L1** `gpu/vk/vk_texture.cpp:6487`: The new ordering is no longer globally ordered by age, but both eviction walks still stop at the first texture younger than need_dead. (more on the line) **Do:** Make both walks examine all eligible ages under the new ordering, and add a test with a young unvisited texture before an old visited victim. 2. **L2** `gpu/vk/vk_texture.cpp:5033`: The new visited flag is read and written without synchronization on the parallel recording fast path. (more on the line) **Do:** Synchronize the visited and age updates and their readers, or collect reuse information per recording thread and merge it safely. 3. **L3** `gpu/vk/vk_vma.cpp:223`: The compaction trigger counts free space in both pools, but image_compact_begin compacts only texture_pool. (more on the line) **Do:** Compact each pool using its own statistics and context, or keep small textures in the pool that the existing compactor handles. **Should fix (1)**: not blocking, but worth doing before merging. - **L4** `gpu/vk/vk_texture.cpp:6488`: Visited textures never receive the documented second-chance decay: decay_survivor is only called by the unit test. (more on the line) **Do:** Clear the visited state for surviving candidates at the appropriate eviction pass, and test the integrated multi-pass behavior. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. *When:* The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. **Do:** Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck. `@fix` can do L1, L2, L3 and L4. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the current head and merge base. The description reports Hyrule Field median FPS rising from 75.30 to 80.10 on Windows NVIDIA over three pairs, but those runs used earlier commits. A Linux NVIDIA report found a 2.1% gain in its cleaner CPU-bound pair, with substantial run-to-run drift; neither result establishes the separate eviction or VRAM-pool gains under pressure. **Other systems:** The texture paths affect both Windows and Linux and all Vulkan vendors, including Steam Deck. NVIDIA runs saw no crash, but AMD, Intel, Steam Deck and low-VRAM eviction pressure remain untested. The pool accounting also feeds the existing compaction and memory-budget logic. **Switches:** None added, changed or removed. **Reviewed:** 8c39108b8e90 against b6d274d779da: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the commit and diff, the new headers and tests, and the changed code and relevant callers. Skimmed the large renderer files and test runner around the affected paths; did not read those files in full. docs/review-checklist.md and the sibling Tooling checkout were absent. Read the supplied comments and CI status.; nothing run (a code review). **Checked and fine:** - The commit has an Assisted-by trailer. - No game-derived files, generated shaders, API changes or new switches appear in the diff. - The existing write-back table mutex remains at its callers. **Testing:** Review only; no code, tests or project scripts were run. CI was still running in the supplied status. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -5030,3 +5031,3 @@
bool texture_touch_quick(Texture* tex, bool for_sampling) {
if (tex->freed_listed || tex->reuse_retire) return false; // (texture_touch takes it out of the reuse list)
tex->last_frame = frame_no; // (the same values whichever thread stores them)
sieve_evict::touch(tex->sieve_visited, tex->last_frame, frame_no); // (the same values whichever thread stores them)
Member

L2 (blocking): The new visited flag is read and written without synchronization on the parallel recording fast path.

When: Two recording threads can resolve the same cached texture and enter texture_touch_quick together. Both access sieve_visited, including a write on cross-frame reuse, which is a C++ data race even when they intend to store the same value.

Do: Synchronize the visited and age updates and their readers, or collect reuse information per recording thread and merge it safely.

**L2** (blocking): The new visited flag is read and written without synchronization on the parallel recording fast path. *When:* Two recording threads can resolve the same cached texture and enter texture_touch_quick together. Both access sieve_visited, including a write on cross-frame reuse, which is a C++ data race even when they intend to store the same value. **Do:** Synchronize the visited and age updates and their readers, or collect reuse information per recording thread and merge it safely.
@ -6484,2 +6485,3 @@
for (auto& kv : textures) order.push_back({kv.second->last_frame, kv.second.get()});
std::sort(order.begin(), order.end(), [](const auto& a, const auto& b) { return a.first < b.first; });
// (longshot) SIEVE (NSDI 2024): unvisited one-hit textures are evicted ahead of revisited working-set textures
std::sort(order.begin(), order.end(), [](const auto& a, const auto& b) {
Member

L1 (blocking): The new ordering is no longer globally ordered by age, but both eviction walks still stop at the first texture younger than need_dead.

When: A recently used unvisited texture sorts before an old visited texture. The break at the start of the eviction walk skips the old texture and everything after it, so dead targets and budget victims can remain allocated under pressure.

Do: Make both walks examine all eligible ages under the new ordering, and add a test with a young unvisited texture before an old visited victim.

**L1** (blocking): The new ordering is no longer globally ordered by age, but both eviction walks still stop at the first texture younger than need_dead. *When:* A recently used unvisited texture sorts before an old visited texture. The break at the start of the eviction walk skips the old texture and everything after it, so dead targets and budget victims can remain allocated under pressure. **Do:** Make both walks examine all eligible ages under the new ordering, and add a test with a young unvisited texture before an old visited victim.
@ -6485,1 +6486,3 @@
std::sort(order.begin(), order.end(), [](const auto& a, const auto& b) { return a.first < b.first; });
// (longshot) SIEVE (NSDI 2024): unvisited one-hit textures are evicted ahead of revisited working-set textures
std::sort(order.begin(), order.end(), [](const auto& a, const auto& b) {
return sieve_evict::evict_before(a.second->sieve_visited, a.first, b.second->sieve_visited, b.first);
Member

L4 (should fix): Visited textures never receive the documented second-chance decay: decay_survivor is only called by the unit test.

When: Once a texture has been used across frames, it stays visited for its entire lifetime even after it stops being used. Under later pressure, newly streamed textures are favored for eviction over that stale former working set.

Do: Clear the visited state for surviving candidates at the appropriate eviction pass, and test the integrated multi-pass behavior.

**L4** (should fix): Visited textures never receive the documented second-chance decay: decay_survivor is only called by the unit test. *When:* Once a texture has been used across frames, it stays visited for its entire lifetime even after it stops being used. Under later pressure, newly streamed textures are favored for eviction over that stale former working set. **Do:** Clear the visited state for surviving candidates at the appropriate eviction pass, and test the integrated multi-pass behavior.
@ -201,0 +220,4 @@
uint64_t fre = st.blockBytes - std::min(st.blockBytes, st.allocationBytes);
if (texture_small_pool) {
VmaStatistics sst{};
vmaGetPoolStatistics(vma, texture_small_pool, &sst);
Member

L3 (blocking): The compaction trigger counts free space in both pools, but image_compact_begin compacts only texture_pool.

When: When small textures leave fragmented blocks, their free space can trigger repeated compactions of the large pool while the fragmented small blocks are never moved or returned. VRAM remains occupied and can force eviction or driver paging on constrained cards.

Do: Compact each pool using its own statistics and context, or keep small textures in the pool that the existing compactor handles.

**L3** (blocking): The compaction trigger counts free space in both pools, but image_compact_begin compacts only texture_pool. *When:* When small textures leave fragmented blocks, their free space can trigger repeated compactions of the large pool while the fragmented small blocks are never moved or returned. VRAM remains occupied and can force eviction or driver paging on constrained cards. **Do:** Compact each pool using its own statistics and context, or keep small textures in the pool that the existing compactor handles.
Author
Contributor

Thanks @HumanBean for the Linux RTX 3090 verification (1% lows 104.83 → 126.29 fps, 0.1% lows 96.90 → 120.34 fps) and for catching the missing sieve_evict::decay_survivor call site!

Wired sieve_evict::decay_survivor(tex->sieve_visited, false) in gpu/vk/vk_texture.cpp at the end of budget-pressure eviction passes (!sweep && !evict.empty()) for surviving textures unused for at least min_unused frames, so textures from previous areas decay cleanly instead of staying permanently marked isited = 1. Verified est_wb_learn.cpp and est_sieve_and_size_class.cpp pass.

Thanks @HumanBean for the Linux RTX 3090 verification (1% lows 104.83 → 126.29 fps, 0.1% lows 96.90 → 120.34 fps) and for catching the missing sieve_evict::decay_survivor call site! Wired sieve_evict::decay_survivor(tex->sieve_visited, false) in gpu/vk/vk_texture.cpp at the end of budget-pressure eviction passes (!sweep && !evict.empty()) for surviving textures unused for at least min_unused frames, so textures from previous areas decay cleanly instead of staying permanently marked isited = 1. Verified est_wb_learn.cpp and est_sieve_and_size_class.cpp pass.
fix(vk): wire sieve_evict::decay_survivor for surviving cold textures after budget eviction
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 14s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d2532f963c
Assisted-by: Antigravity
siantm force-pushed perf/sieve-wblearn-vram-pools from d2532f963c
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 14s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 84db7c4878
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 18s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-29 23:28:14 +00:00
Compare
fix(vk): fix SIEVE age-walk early break, atomic visited flag, and small-pool compaction
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 11s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
9078cf43eb
Addresses BeanBot review L1, L2, and L3:
- L1: replace age-based early break with continue in texture_frame walks so young unvisited textures never mask older visited victims
- L2: make Texture::sieve_visited std::atomic<uint8_t> with relaxed atomic touch/load/decay
- L3: compact whichever of texture_pool or texture_small_pool has more returnable free bytes in image_compact_begin

Assisted-by: Antigravity
Author
Contributor

Addressed all blocking and should-fix items from BeanBot's review (L1, L2, L3, L4):

  • L1 ( k_texture.cpp eviction walks): Replaced the age-based reak with continue in both the y_hold dead-target scan and the main eviction walk (keeping reak only for the budget-met check), so young unvisited textures ordered before older visited victims never terminate the walk early. Added a regression test in ests/test_sieve_and_size_class.cpp.
  • L2 ( k_texture.h / sieve_evict.h concurrent touch): Changed Texture::sieve_visited to std::atomic<uint8_t> and updated sieve_evict::touch, the eviction sort, and decay_survivor to use relaxed atomics (std::memory_order_relaxed / __atomic_load_n / __atomic_store_n), eliminating data races on exture_touch_quick.
  • L3 ( k_vma.cpp small-pool compaction): Updated image_compact_begin() to compare returnable free bytes across exture_pool (large) and exture_small_pool (small) and compact whichever pool holds more returnable free space, matching extures_pool_usage().
  • L4 ( k_texture.cpp survivor decay): Wired sieve_evict::decay_survivor for surviving cold textures ( rame_no - last_frame >= min_unused) after budget-pressure eviction passes (!sweep && !evict.empty()).

Verified ests/test_wb_learn.cpp and ests/test_sieve_and_size_class.cpp compile cleanly with -Wall -Wextra -Werror and pass. Ready for retest!

Addressed all blocking and should-fix items from BeanBot's review (L1, L2, L3, L4): - **L1 ( k_texture.cpp eviction walks):** Replaced the age-based reak with continue in both the y_hold dead-target scan and the main eviction walk (keeping reak only for the budget-met check), so young unvisited textures ordered before older visited victims never terminate the walk early. Added a regression test in ests/test_sieve_and_size_class.cpp. - **L2 ( k_texture.h / sieve_evict.h concurrent touch):** Changed Texture::sieve_visited to std::atomic<uint8_t> and updated sieve_evict::touch, the eviction sort, and decay_survivor to use relaxed atomics (std::memory_order_relaxed / __atomic_load_n / __atomic_store_n), eliminating data races on exture_touch_quick. - **L3 ( k_vma.cpp small-pool compaction):** Updated image_compact_begin() to compare returnable free bytes across exture_pool (large) and exture_small_pool (small) and compact whichever pool holds more returnable free space, matching extures_pool_usage(). - **L4 ( k_texture.cpp survivor decay):** Wired sieve_evict::decay_survivor for surviving cold textures ( rame_no - last_frame >= min_unused) after budget-pressure eviction passes (!sweep && !evict.empty()). Verified ests/test_wb_learn.cpp and ests/test_sieve_and_size_class.cpp compile cleanly with -Wall -Wextra -Werror and pass. Ready for retest!
Owner
@review
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L6) The eviction and compaction fixes address the code items, but the performance gain and behavior under eviction pressure still need verification on the current base and head.

The change replaces writeback interval lookups, prioritizes texture eviction using reuse history, and separates small texture allocations into another VRAM pool. It adds eviction and compaction complexity in pursuit of lower frame time and fragmentation.

Blocking (1): must change before merging.

  1. L6: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L5: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. When: The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. Do: Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck.

Since the last review (on 8c39108b8e)
Resolved: L1 (The new ordering is no longer globally ordered by age, but both eviction walks still stop…); L2 (The new visited flag is read and written without synchronization on the parallel recording…); L3 (The compaction trigger counts free space in both pools, but image_compact_begin compacts o…); L4 (Visited textures never receive the documented second-chance decay: decay_survivor is only…)
Still open: L5 (The renderer and memory changes need current-base, current-head measurements and eviction-…)
New: L6 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven on the current head and base. Earlier Windows runs reported +6.4% median FPS in Hyrule Field; Linux runs on an earlier head showed +2.1% to +5.2% across two CPU-bound pairs, with substantial run-to-run drift.

Other systems: The changes affect Vulkan texture eviction, memory compaction and writeback tracking on Windows and Linux across GPU vendors. Earlier NVIDIA runs completed without crashes; AMD, Intel and low-VRAM eviction-pressure behavior remain unverified.

Switches: No switches added, changed or removed.

Reviewed: 9078cf43eb against b6d274d779: Read the fix diff, ledger-related eviction and compaction paths, helper headers, regression test, repository guidance and supplied runs. The full changed renderer files and complete base diff were not read in full; other changed tests and generated material were skimmed.; nothing run (a code review).

Checked and fine:

  • The age checks no longer terminate either eviction walk early.
  • The fix retains the writeback lookup, SIEVE ordering and size-class pool changes.

Testing: No commands that build or run the project were executed. Earlier Windows and Linux NVIDIA game runs are reported; CI is still running.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L6) The eviction and compaction fixes address the code items, but the performance gain and behavior under eviction pressure still need verification on the current base and head. The change replaces writeback interval lookups, prioritizes texture eviction using reuse history, and separates small texture allocations into another VRAM pool. It adds eviction and compaction complexity in pursuit of lower frame time and fragmentation. **Blocking (1)**: must change before merging. 1. **L6**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. *When:* The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. **Do:** Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck. **Since the last review** (on 8c39108b8e90) Resolved: L1 (The new ordering is no longer globally ordered by age, but both eviction walks still stop…); L2 (The new visited flag is read and written without synchronization on the parallel recording…); L3 (The compaction trigger counts free space in both pools, but image_compact_begin compacts o…); L4 (Visited textures never receive the documented second-chance decay: decay_survivor is only…) Still open: L5 (The renderer and memory changes need current-base, current-head measurements and eviction-…) New: L6 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the current head and base. Earlier Windows runs reported +6.4% median FPS in Hyrule Field; Linux runs on an earlier head showed +2.1% to +5.2% across two CPU-bound pairs, with substantial run-to-run drift. **Other systems:** The changes affect Vulkan texture eviction, memory compaction and writeback tracking on Windows and Linux across GPU vendors. Earlier NVIDIA runs completed without crashes; AMD, Intel and low-VRAM eviction-pressure behavior remain unverified. **Switches:** No switches added, changed or removed. **Reviewed:** 9078cf43eb40 against b6d274d779da: Read the fix diff, ledger-related eviction and compaction paths, helper headers, regression test, repository guidance and supplied runs. The full changed renderer files and complete base diff were not read in full; other changed tests and generated material were skimmed.; nothing run (a code review). **Checked and fine:** - The age checks no longer terminate either eviction walk early. - The fix retains the writeback lookup, SIEVE ordering and size-class pool changes. **Testing:** No commands that build or run the project were executed. Earlier Windows and Linux NVIDIA game runs are reported; CI is still running. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner
@rebase
Member

I rebased this pull request onto main (4f21b844d1): the new head is 3397c60527.

Conflicts resolved

  • gpu/vk/vk_texture.cpp: Both eviction loops now skip young textures and continue looking for eligible older textures; the budget stop remains intact.
  • gpu/vk/vk_texture.cpp: Kept the age-walk continues and their explanations, along with the base branch’s retiring-texture check.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (4f21b844d16b): the new head is 3397c60527f4. **Conflicts resolved** - gpu/vk/vk_texture.cpp: Both eviction loops now skip young textures and continue looking for eligible older textures; the budget stop remains intact. - gpu/vk/vk_texture.cpp: Kept the age-walk continues and their explanations, along with the base branch’s retiring-texture check. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed perf/sieve-wblearn-vram-pools from 9078cf43eb
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 11s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 3397c60527
Some checks failed
PR description / Title and description (pull_request_target) Successful in 13s
CI / What the change needs (pull_request) Successful in 18s
CI / Third-party parts and guide screenshots (pull_request) Failing after 23s
beanstalk/approval not approved yet
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 22s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m2s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m26s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m57s
CI / Website build and checks (pull_request) Failing after 37s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m9s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 23m53s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 38m46s
2026-11-30 04:00:01 +00:00
Compare
HumanBean deleted branch perf/sieve-wblearn-vram-pools 2026-11-30 04:00:18 +00:00
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The rebase resolves the conflict, but the performance gain and eviction behavior still need verification on the current base and head, including under VRAM pressure. Recommend approval; not approved on the forge.

The change replaces interval-tree lookups with flat tables, changes texture eviction priority, and separates small textures into a VRAM pool. It may improve frame time and reclamation, at the cost of additional pool and eviction complexity.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L5: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. When: The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. Do: Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck.

Since the last review (on 9078cf43eb)
Resolved: L6 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L5 (The renderer and memory changes need current-base, current-head measurements and eviction-…)

Checks: Still running: PR description / Title and description (pull_request_target).

Also noticed (1; not asked for, not blocking)
  • tests/test_vram_compact.py still requires source strings removed by the eviction and compaction changes, so its source check will fail.
More: does it help, other systems, switches, what was read

Does it help: Unproven on the current base and head. Earlier Windows runs reported 75.30 to 80.10 median FPS in Hyrule Field; Linux runs on an earlier head showed a smaller gain with substantial run-to-run variation.

Other systems: Texture eviction and pool compaction affect Vulkan drivers and VRAM budgets on Windows and Linux. Earlier NVIDIA runs passed in game; AMD, Intel and lower-VRAM eviction-pressure behavior remain unverified.

Switches: No switches added, changed or removed.

Reviewed: 3397c60527 against 4f21b844d1: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the diff and the new helper headers and tests. Skimmed the larger changed renderer files and supporting code; they were not read in full. docs/review-checklist.md is absent.; nothing run (a code review).

Checked and fine:

  • The rebase retains the age-walk continue checks and the retiring-texture guard.
  • The existing Windows and Linux NVIDIA reports provide earlier in-game evidence.

Testing: No commands that build or run project code were executed. The supplied CI reports the description check still running.

Overlaps and merge order: Unknown; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The rebase resolves the conflict, but the performance gain and eviction behavior still need verification on the current base and head, including under VRAM pressure. Recommend approval; not approved on the forge. The change replaces interval-tree lookups with flat tables, changes texture eviction priority, and separates small textures into a VRAM pool. It may improve frame time and reclamation, at the cost of additional pool and eviction complexity. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The renderer and memory changes need current-base, current-head measurements and eviction-pressure runs on affected hardware. *When:* The reported gain uses older commits and NVIDIA hardware; it does not show the effect of the final head on AMD, Steam Deck, or 4–8 GB devices where the new pool and eviction policy matter most. **Do:** Run repeated interleaved comparisons on the current base and head at player settings, including FPS and frame-time lows, RAM and VRAM, and a moving low-VRAM eviction route on AMD or Steam Deck. **Since the last review** (on 9078cf43eb40) Resolved: L6 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L5 (The renderer and memory changes need current-base, current-head measurements and eviction-…) **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - tests/test_vram_compact.py still requires source strings removed by the eviction and compaction changes, so its source check will fail. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the current base and head. Earlier Windows runs reported 75.30 to 80.10 median FPS in Hyrule Field; Linux runs on an earlier head showed a smaller gain with substantial run-to-run variation. **Other systems:** Texture eviction and pool compaction affect Vulkan drivers and VRAM budgets on Windows and Linux. Earlier NVIDIA runs passed in game; AMD, Intel and lower-VRAM eviction-pressure behavior remain unverified. **Switches:** No switches added, changed or removed. **Reviewed:** 3397c60527f4 against 4f21b844d16b: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the diff and the new helper headers and tests. Skimmed the larger changed renderer files and supporting code; they were not read in full. docs/review-checklist.md is absent.; nothing run (a code review). **Checked and fine:** - The rebase retains the age-walk continue checks and the retiring-texture guard. - The existing Windows and Linux NVIDIA reports provide earlier in-game evidence. **Testing:** No commands that build or run project code were executed. The supplied CI reports the description check still running. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
Author
Contributor

This merged as 3b18a4a9 a minute after BeanBot's @rebase (head 3397c605). BeanBot's rebase note says it built and ran nothing. Two things after the merge:

  • The conflict resolution, read: in texture_frame (gpu/vk/vk_texture.cpp), the two eviction walks now continue past textures younger than need_dead instead of breaking. They have to, since SIEVE can put a young unvisited texture ahead of an older visited one in the order. The budget stop still breaks, and the retiring-texture check from main is kept (tex->last_value > completed || tex->retiring). The second-chance decay after a budget pass is in place. I found nothing wrong in it by reading. I haven't run this PR's checks (test_wb_learn.py, test_vram_compact.py, test_sieve_and_size_class.py, test_memory_priority.py, test_mem_account.py, test_evict_reason.py, test_keep_rendered.py) on main yet: that job is still waiting in the PC's queue.
  • CI on 3397c605: CI reported failures in Rust, the game-free checks (both parts), the website build, and third-party/guide screenshots. I couldn't open those job logs, so I can't yet say whether they are this PR's or main's of that day.
  • L5 (Testing before merging): still open. Measurements of the current base against the current head on AMD, the Steam Deck and 4 to 8 GB cards, with a moving low-VRAM eviction route, need the farm or people. The vram_budget row that the farm's earlier plan wanted doesn't exist in the Insert menu, so its first run couldn't judge it.
This merged as 3b18a4a9 a minute after BeanBot's `@rebase` (head 3397c605). BeanBot's rebase note says it built and ran nothing. Two things after the merge: - **The conflict resolution, read:** in `texture_frame` (`gpu/vk/vk_texture.cpp`), the two eviction walks now `continue` past textures younger than `need_dead` instead of `break`ing. They have to, since SIEVE can put a young unvisited texture ahead of an older visited one in the order. The budget stop still `break`s, and the retiring-texture check from `main` is kept (`tex->last_value > completed || tex->retiring`). The second-chance decay after a budget pass is in place. I found nothing wrong in it by reading. I haven't run this PR's checks (`test_wb_learn.py`, `test_vram_compact.py`, `test_sieve_and_size_class.py`, `test_memory_priority.py`, `test_mem_account.py`, `test_evict_reason.py`, `test_keep_rendered.py`) on `main` yet: that job is still waiting in the PC's queue. - **CI on 3397c605:** CI reported failures in Rust, the game-free checks (both parts), the website build, and third-party/guide screenshots. I couldn't open those job logs, so I can't yet say whether they are this PR's or `main`'s of that day. - **L5 (Testing before merging):** still open. Measurements of the current base against the current head on AMD, the Steam Deck and 4 to 8 GB cards, with a moving low-VRAM eviction route, need the farm or people. The `vram_budget` row that the farm's earlier plan wanted doesn't exist in the Insert menu, so its first run couldn't judge it.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
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
MagicBeanDev/Longshot!2810
No description provided.