gpu: evict covered placed textures under budget and trim unmapped mips #428

Open
froziiik wants to merge 3 commits from upstream-pr/428 into main
froziiik commented 2026-11-27 17:50:56 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by froziiik on 2026-11-27T17:50:56Z.


Refs #8

Summary

On a 16 GB M2 Pro (recommendedMaxWorkingSetSize = 12,124 MiB, Xbox Series S title_memory_mib = 7,776 MiB), headless runs past the menus with VICTORY_TEXTURE_DROP_TOP_MIP=1 and VICTORY_METAL_TEXTURE_BUDGET_MB=4348 hit kIOGPUCommandBufferCallbackErrorOutOfMemory (20 errors by frame 1899) due to:

  1. Over 11,400 covered placed texture copies staying pinned in descriptor heaps because give_up_covered waited for !host.texture_in_use(k).
  2. Placed textures at distinct virtual addresses reusing the same physical pool pages not being detected by VA-only overlap checks in give_up_overlapped.
  3. Evicted covered copies re-realized by descriptor mirrors/tables losing their covered mark and remaining resident alongside the newer placement.
  4. Partially streamed textures (~2,184 textures) allocating Metal MTLTexture storage for unmapped leading fine mips.

Changes

  • Retired-epoch covered eviction & cross-VA pool overlap (crates/victory-gpu/src/native/{title.rs,textures.rs,memory.rs}):
    • Added PoolTable::pool_ranges and Title::placed_pools / placed_chunks to index placed textures by physical pool offsets across virtual address aliases.
    • Added GPU epoch tracking (gpu_epoch, retired_epoch, pending_epochs, Title::retire_gpu_epochs) so under a texture budget (budget.limit > 0), give_up_covered evicts heap-shown covered copies and clears their stale heap entries once prior GPU work has retired.
    • Added Title::covered_evicted and has_live_placed_overlap so re-realized covered copies are marked covered again while an overlapping placement is live.
  • Unmapped leading mip trimming & in-place upgrade (crates/victory-gpu/src/native/{memory.rs,textures.rs,host.rs,glue.rs}):
    • Added PoolTable::any_mapped, unmapped_leading_mips, and TextureInfo::host_desc_with to omit unmapped leading fine mips on sampled 2D textures at creation.
    • Added Title::upgrade_trimmed_textures and NativeHost::upgrade_texture / dropped_count to upgrade trimmed textures in place and re-mirror their heap entries once PoolTable maps their fine mips.
  • Tests & docs (crates/victory-gpu/src/native/texture_tests.rs, docs/native-host.md):
    • Added 4 unit tests covering retired-epoch covered eviction, cross-VA pool overlap, re-covering revived covered copies, and trimming/upgrading unmapped leading mips.
    • Updated docs/native-host.md.

Verification

  • cargo test -p victory-gpu -- --test-threads=1 (arm64 native): passed
  • cargo test -p victory-hle -p victory -p xtask: passed
  • cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings: passed
  • cargo xtask policy: passed (asset policy: 398 files ok)
  • Headless 115s verification on 16 GB M2 Pro (VICTORY_TEXTURE_DROP_TOP_MIP=1 VICTORY_METAL_TEXTURE_BUDGET_MB=4348): OutOfMemory 20 -> 0, Other 5 -> 0, metal_mb 11,033 MiB at frame 1792 (8,939 draws).
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5530931094 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428). Originally posted by [froziiik](https://github.com/froziiik) on 2026-11-27T17:50:56Z. --- Refs #8 ### Summary On a 16 GB M2 Pro (`recommendedMaxWorkingSetSize` = 12,124 MiB, Xbox Series S `title_memory_mib` = 7,776 MiB), headless runs past the menus with `VICTORY_TEXTURE_DROP_TOP_MIP=1` and `VICTORY_METAL_TEXTURE_BUDGET_MB=4348` hit `kIOGPUCommandBufferCallbackErrorOutOfMemory` (20 errors by frame 1899) due to: 1. Over 11,400 covered placed texture copies staying pinned in descriptor heaps because `give_up_covered` waited for `!host.texture_in_use(k)`. 2. Placed textures at distinct virtual addresses reusing the same physical pool pages not being detected by VA-only overlap checks in `give_up_overlapped`. 3. Evicted covered copies re-realized by descriptor mirrors/tables losing their `covered` mark and remaining resident alongside the newer placement. 4. Partially streamed textures (~2,184 textures) allocating Metal `MTLTexture` storage for unmapped leading fine mips. ### Changes - **Retired-epoch covered eviction & cross-VA pool overlap** (`crates/victory-gpu/src/native/{title.rs,textures.rs,memory.rs}`): - Added `PoolTable::pool_ranges` and `Title::placed_pools` / `placed_chunks` to index placed textures by physical pool offsets across virtual address aliases. - Added GPU epoch tracking (`gpu_epoch`, `retired_epoch`, `pending_epochs`, `Title::retire_gpu_epochs`) so under a texture budget (`budget.limit > 0`), `give_up_covered` evicts heap-shown covered copies and clears their stale heap entries once prior GPU work has retired. - Added `Title::covered_evicted` and `has_live_placed_overlap` so re-realized covered copies are marked covered again while an overlapping placement is live. - **Unmapped leading mip trimming & in-place upgrade** (`crates/victory-gpu/src/native/{memory.rs,textures.rs,host.rs,glue.rs}`): - Added `PoolTable::any_mapped`, `unmapped_leading_mips`, and `TextureInfo::host_desc_with` to omit unmapped leading fine mips on sampled 2D textures at creation. - Added `Title::upgrade_trimmed_textures` and `NativeHost::upgrade_texture` / `dropped_count` to upgrade trimmed textures in place and re-mirror their heap entries once `PoolTable` maps their fine mips. - **Tests & docs** (`crates/victory-gpu/src/native/texture_tests.rs`, `docs/native-host.md`): - Added 4 unit tests covering retired-epoch covered eviction, cross-VA pool overlap, re-covering revived covered copies, and trimming/upgrading unmapped leading mips. - Updated `docs/native-host.md`. ### Verification - `cargo test -p victory-gpu -- --test-threads=1` (arm64 native): passed - `cargo test -p victory-hle -p victory -p xtask`: passed - `cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings`: passed - `cargo xtask policy`: passed (`asset policy: 398 files ok`) - Headless 115s verification on 16 GB M2 Pro (`VICTORY_TEXTURE_DROP_TOP_MIP=1 VICTORY_METAL_TEXTURE_BUDGET_MB=4348`): `OutOfMemory` **20 -> 0**, `Other` **5 -> 0**, `metal_mb` 11,033 MiB at frame 1792 (8,939 draws).
Olima34 commented 2026-11-28 00:37:17 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T00:37:17Z.

Review: CHANGES_REQUESTED


Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as 86cefd22, then a batch of PRs; main is now a6a58361). This branch now conflicts with main in crates/victory-gpu/src/native/textures.rs and crates/victory-gpu/src/native/title.rs.

Could you merge current main into the branch (a merge commit is fine, no need to rebase) and resolve the conflict? These are in code main reworked tonight (covered placed textures and top-mip dropping), so please check your eviction and mip trim still apply on top of it. CI has not run on this PR yet (first-time contributor runs need approval); we'll approve the run once the branch is updated. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6094669654 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#pullrequestreview-6094669654). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T00:37:17Z. **Review:** CHANGES_REQUESTED --- Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as 86cefd22, then a batch of PRs; main is now a6a58361). This branch now conflicts with main in `crates/victory-gpu/src/native/textures.rs` and `crates/victory-gpu/src/native/title.rs`. Could you merge current `main` into the branch (a merge commit is fine, no need to rebase) and resolve the conflict? These are in code main reworked tonight (covered placed textures and top-mip dropping), so please check your eviction and mip trim still apply on top of it. CI has not run on this PR yet (first-time contributor runs need approval); we'll approve the run once the branch is updated. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.
ItsMariusBC commented 2026-11-28 00:45:47 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-28T00:45:47Z.


A 24 GB data point for this, with one caveat first: it is on the old base. Main b998bb65 + #405 at 9706344f + this PR at aa8f3a17, applied as a patch (it applied cleanly there). I have not tried it on current main, where the review above says it conflicts.

Apple M5 Pro, 24 GB, macOS 27.2.1, Series S, windowed, warm shader cache (no translation in the runs), residency useResource per encoder (the default here), VICTORY_HOLD_BYTE=1471b6330:1 VICTORY_TEXTURE_DROP_TOP_MIP=1, --seconds 480. The build also carried a local change that is off unless a switch is set.

#405 alone (two runs) #405 + this PR, VICTORY_METAL_TEXTURE_BUDGET_MB=6144 VICTORY_TRACE_TEXTURE_SYNC=1
First world draw +107 s, +112 s +90 s
World frames by the end of the run 32, 47 121
Lowest free memory level (kern.memorystatus_level, every 5 s) 2 % 4 %
GPU errors none none
Ended the timer the timer

Host texture copies in the run with this PR, from the once-a-second line: 3,630 MiB at the most, and 3,538 MiB at the end, of which 2,989 shown by heap entries and 547 that could be given up; 3,785 MiB of distinct title memory under the copies, 1,691 MiB of copies outside the title's pools.

  • The budget of 6,144 MiB was never reached, and the line says nothing was given up for it in the whole run (0 copies, 0 MiB). So the saving here is not the budget's.
  • I have no same-evening figure without this PR on this Mac. For scale, alicans measured 10,193 to 10,533 MiB at the most on a 24 GB M4 Pro with the mip drop on (#8).
  • "made again" adds up to 28,462 over the run, against 0 given up. I do not know what makes them: maybe the trimmed textures upgraded once their fine mips are mapped. If each is a new texture and an upload, that is a cost worth a look.

Still slow: 121 frames in the 315 s after the first world draw is about one frame every 2.6 s, and 5.9 GB of swap was in use late in the run.

On screen I have not checked for missing or flickering textures yet; I will add that when I have it.

I can attach the logs, or run the branch again once it is on current main.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231173081 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#issuecomment-7231173081). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-28T00:45:47Z. --- A 24 GB data point for this, with one caveat first: it is on the old base. Main `b998bb65` + #405 at `9706344f` + this PR at `aa8f3a17`, applied as a patch (it applied cleanly there). I have not tried it on current main, where the review above says it conflicts. Apple M5 Pro, 24 GB, macOS 27.2.1, Series S, windowed, warm shader cache (no translation in the runs), residency `useResource per encoder` (the default here), `VICTORY_HOLD_BYTE=1471b6330:1 VICTORY_TEXTURE_DROP_TOP_MIP=1`, `--seconds 480`. The build also carried a local change that is off unless a switch is set. | | #405 alone (two runs) | #405 + this PR, `VICTORY_METAL_TEXTURE_BUDGET_MB=6144 VICTORY_TRACE_TEXTURE_SYNC=1` | | --- | --- | --- | | First world draw | +107 s, +112 s | +90 s | | World frames by the end of the run | 32, 47 | 121 | | Lowest free memory level (`kern.memorystatus_level`, every 5 s) | 2 % | 4 % | | GPU errors | none | none | | Ended | the timer | the timer | **Host texture copies** in the run with this PR, from the once-a-second line: 3,630 MiB at the most, and 3,538 MiB at the end, of which 2,989 shown by heap entries and 547 that could be given up; 3,785 MiB of distinct title memory under the copies, 1,691 MiB of copies outside the title's pools. - The budget of 6,144 MiB was never reached, and the line says nothing was given up for it in the whole run (0 copies, 0 MiB). So the saving here is not the budget's. - I have no same-evening figure without this PR on this Mac. For scale, alicans measured 10,193 to 10,533 MiB at the most on a 24 GB M4 Pro with the mip drop on (#8). - "made again" adds up to 28,462 over the run, against 0 given up. I do not know what makes them: maybe the trimmed textures upgraded once their fine mips are mapped. If each is a new texture and an upload, that is a cost worth a look. Still slow: 121 frames in the 315 s after the first world draw is about one frame every 2.6 s, and 5.9 GB of swap was in use late in the run. On screen I have not checked for missing or flickering textures yet; I will add that when I have it. I can attach the logs, or run the branch again once it is on current main.
ItsMariusBC commented 2026-11-28 01:29:44 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-28T01:29:44Z.


The figure without this PR that my comment above lacked: one run of current main, same Mac, same night.

Main 31a28830 (so with #405 merged), no budget set, VICTORY_TEXTURE_DROP_TOP_MIP=2 VICTORY_TRACE_TEXTURE_SYNC=1 VICTORY_HOLD_BYTE=1471b6330:1, Series S, windowed, --seconds 480. The build carried the same local change that is off unless a switch is set.

Current main, no budget Old base + #405 + this PR (the run above)
Host texture copies, at the most 9,531 MiB 3,630 MiB
At the end: copies 9,516 MiB 3,538 MiB
At the end: distinct title memory under the copies 2,930 MiB 3,785 MiB
At the end: shown by heap entries 9,023 MiB 2,989 MiB
At the end: covered copies still in use 9,697 6
Lowest free memory level 2 % 4 %
First world draw +201 s +90 s
World frames by the end of the run 15 121
GPU errors none none

The last line of the main run also says 17 covered copies were given up in that second (3 MiB) and nothing was shared.

So on current main the copies are more than three times the title memory under them, and nearly all of that is held by covered copies that heap entries still show. With this PR on the old base they were about the size of the memory under them.

Three things that differ between the two runs, so the table is not a clean before and after:

  • The bases are 103 commits apart, and main reworked the covered copies in between (the sweep that checks a share of them at a time).
  • The mip drop is =2 on main and =1 in the PR run. With the second level dropped as well, main still held 9.5 GB.
  • The main run was the first on its shader cache key and translated 3,639 shaders during the run, which slows the load and the world. The PR run translated none. That bears on the frame counts and the time of the first world draw, not on the copies.

I tried the patch on 31a28830: it conflicts in textures.rs (three places, give_up_covered and around keep_to_budget) and title.rs (two places, the covered field and its initial value). I did not resolve them, since main's queue of covered copies and this PR's epochs are two answers to the same function.

Once the branch is on current main I can run it here and post the same table.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231704999 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#issuecomment-7231704999). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-28T01:29:44Z. --- The figure without this PR that my comment above lacked: one run of current main, same Mac, same night. Main `31a28830` (so with #405 merged), no budget set, `VICTORY_TEXTURE_DROP_TOP_MIP=2 VICTORY_TRACE_TEXTURE_SYNC=1 VICTORY_HOLD_BYTE=1471b6330:1`, Series S, windowed, `--seconds 480`. The build carried the same local change that is off unless a switch is set. | | Current main, no budget | Old base + #405 + this PR (the run above) | | --- | --- | --- | | Host texture copies, at the most | 9,531 MiB | 3,630 MiB | | At the end: copies | 9,516 MiB | 3,538 MiB | | At the end: distinct title memory under the copies | 2,930 MiB | 3,785 MiB | | At the end: shown by heap entries | 9,023 MiB | 2,989 MiB | | At the end: covered copies still in use | 9,697 | 6 | | Lowest free memory level | 2 % | 4 % | | First world draw | +201 s | +90 s | | World frames by the end of the run | 15 | 121 | | GPU errors | none | none | The last line of the main run also says 17 covered copies were given up in that second (3 MiB) and nothing was shared. So on current main the copies are more than three times the title memory under them, and nearly all of that is held by covered copies that heap entries still show. With this PR on the old base they were about the size of the memory under them. Three things that differ between the two runs, so the table is not a clean before and after: - The bases are 103 commits apart, and main reworked the covered copies in between (the sweep that checks a share of them at a time). - The mip drop is `=2` on main and `=1` in the PR run. With the second level dropped as well, main still held 9.5 GB. - The main run was the first on its shader cache key and translated 3,639 shaders during the run, which slows the load and the world. The PR run translated none. That bears on the frame counts and the time of the first world draw, not on the copies. I tried the patch on `31a28830`: it conflicts in `textures.rs` (three places, `give_up_covered` and around `keep_to_budget`) and `title.rs` (two places, the `covered` field and its initial value). I did not resolve them, since main's queue of covered copies and this PR's epochs are two answers to the same function. Once the branch is on current main I can run it here and post the same table.
froziiik commented 2026-11-28 13:03:12 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by froziiik on 2026-11-28T13:03:12Z.


Merged main (26817285) into fix/16gb-texture-oom (76533ce0) and resolved the conflicts:

  • title.rs / textures.rs: Combined main's bounded covered_queue (COVERED_CHECKS) round-robin sweep in give_up_covered with retired-epoch eviction (covered: HashMap<usize, u64>, retire_gpu_epochs, covered_evicted), preserved SYNC_PHASES timing around give_up_covered / keep_to_budget / upgrade_trimmed_textures, and verified unmapped_leading_mips works on top of VICTORY_TEXTURE_DROP_TOP_MIP=2.
  • texture_tests.rs: Updated a_sync_checks_covered_copies_a_share_at_a_time for the HashMap<usize, u64> type of covered.

Local verification on 76533ce0:

  • cargo test -p victory-gpu -- --test-threads=1 — passed
  • cargo test -p victory-hle -p victory -p xtask — passed
  • cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings — passed
  • cargo xtask policy — passed (404 files ok)

@Olima34 Could you please approve the CI run on the updated head?

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239654719 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#issuecomment-7239654719). Originally posted by [froziiik](https://github.com/froziiik) on 2026-11-28T13:03:12Z. --- Merged `main` (`26817285`) into `fix/16gb-texture-oom` (`76533ce0`) and resolved the conflicts: - **`title.rs` / `textures.rs`**: Combined `main`'s bounded `covered_queue` (`COVERED_CHECKS`) round-robin sweep in `give_up_covered` with retired-epoch eviction (`covered: HashMap<usize, u64>`, `retire_gpu_epochs`, `covered_evicted`), preserved `SYNC_PHASES` timing around `give_up_covered` / `keep_to_budget` / `upgrade_trimmed_textures`, and verified `unmapped_leading_mips` works on top of `VICTORY_TEXTURE_DROP_TOP_MIP=2`. - **`texture_tests.rs`**: Updated `a_sync_checks_covered_copies_a_share_at_a_time` for the `HashMap<usize, u64>` type of `covered`. Local verification on `76533ce0`: - `cargo test -p victory-gpu -- --test-threads=1` — passed - `cargo test -p victory-hle -p victory -p xtask` — passed - `cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings` — passed - `cargo xtask policy` — passed (`404 files ok`) @Olima34 Could you please approve the CI run on the updated head?
Olima34 commented 2026-11-28 13:04:57 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T13:04:57Z.


Merged main (26817285) into fix/16gb-texture-oom (76533ce0) and resolved the conflicts:

  • title.rs / textures.rs: Combined main's bounded covered_queue (COVERED_CHECKS) round-robin sweep in give_up_covered with retired-epoch eviction (covered: HashMap<usize, u64>, retire_gpu_epochs, covered_evicted), preserved SYNC_PHASES timing around give_up_covered / keep_to_budget / upgrade_trimmed_textures, and verified unmapped_leading_mips works on top of VICTORY_TEXTURE_DROP_TOP_MIP=2.
  • texture_tests.rs: Updated a_sync_checks_covered_copies_a_share_at_a_time for the HashMap<usize, u64> type of covered.

Local verification on 76533ce0:

  • cargo test -p victory-gpu -- --test-threads=1 — passed
  • cargo test -p victory-hle -p victory -p xtask — passed
  • cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings — passed
  • cargo xtask policy — passed (404 files ok)

@Olima34 Could you please approve the CI run on the updated head?

Come one the discord if you want to help us

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239676793 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#issuecomment-7239676793). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T13:04:57Z. --- > Merged `main` (`26817285`) into `fix/16gb-texture-oom` (`76533ce0`) and resolved the conflicts: > - **`title.rs` / `textures.rs`**: Combined `main`'s bounded `covered_queue` (`COVERED_CHECKS`) round-robin sweep in `give_up_covered` with retired-epoch eviction (`covered: HashMap<usize, u64>`, `retire_gpu_epochs`, `covered_evicted`), preserved `SYNC_PHASES` timing around `give_up_covered` / `keep_to_budget` / `upgrade_trimmed_textures`, and verified `unmapped_leading_mips` works on top of `VICTORY_TEXTURE_DROP_TOP_MIP=2`. > - **`texture_tests.rs`**: Updated `a_sync_checks_covered_copies_a_share_at_a_time` for the `HashMap<usize, u64>` type of `covered`. > > Local verification on `76533ce0`: > - `cargo test -p victory-gpu -- --test-threads=1` — passed > - `cargo test -p victory-hle -p victory -p xtask` — passed > - `cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings` — passed > - `cargo xtask policy` — passed (`404 files ok`) > > @Olima34 Could you please approve the CI run on the updated head? Come one the discord if you want to help us
froziiik commented 2026-11-28 13:08:18 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by froziiik on 2026-11-28T13:08:18Z.


Merged main (26817285) into fix/16gb-texture-oom (76533ce0) and resolved the conflicts:

  • title.rs / textures.rs: Combined main's bounded covered_queue (COVERED_CHECKS) round-robin sweep in give_up_covered with retired-epoch eviction (covered: HashMap<usize, u64>, retire_gpu_epochs, covered_evicted), preserved SYNC_PHASES timing around give_up_covered / keep_to_budget / upgrade_trimmed_textures, and verified unmapped_leading_mips works on top of VICTORY_TEXTURE_DROP_TOP_MIP=2.
  • texture_tests.rs: Updated a_sync_checks_covered_copies_a_share_at_a_time for the HashMap<usize, u64> type of covered.

Local verification on 76533ce0:

  • cargo test -p victory-gpu -- --test-threads=1 — passed
  • cargo test -p victory-hle -p victory -p xtask — passed
  • cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings — passed
  • cargo xtask policy — passed (404 files ok)

@Olima34 Could you please approve the CI run on the updated head?

Come one the discord if you want to help us

My discord is frozzyyy, would be glad to help

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239719515 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/428#issuecomment-7239719515). Originally posted by [froziiik](https://github.com/froziiik) on 2026-11-28T13:08:18Z. --- > > Merged `main` (`26817285`) into `fix/16gb-texture-oom` (`76533ce0`) and resolved the conflicts: > > > > * **`title.rs` / `textures.rs`**: Combined `main`'s bounded `covered_queue` (`COVERED_CHECKS`) round-robin sweep in `give_up_covered` with retired-epoch eviction (`covered: HashMap<usize, u64>`, `retire_gpu_epochs`, `covered_evicted`), preserved `SYNC_PHASES` timing around `give_up_covered` / `keep_to_budget` / `upgrade_trimmed_textures`, and verified `unmapped_leading_mips` works on top of `VICTORY_TEXTURE_DROP_TOP_MIP=2`. > > * **`texture_tests.rs`**: Updated `a_sync_checks_covered_copies_a_share_at_a_time` for the `HashMap<usize, u64>` type of `covered`. > > > > Local verification on `76533ce0`: > > > > * `cargo test -p victory-gpu -- --test-threads=1` — passed > > * `cargo test -p victory-hle -p victory -p xtask` — passed > > * `cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings` — passed > > * `cargo xtask policy` — passed (`404 files ok`) > > > > [@Olima34](https://github.com/Olima34) Could you please approve the CI run on the updated head? > > Come one the discord if you want to help us My discord is `frozzyyy`, would be glad to help >
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/428:upstream-pr/428'
git switch 'upstream-pr/428'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/428'
git switch 'upstream-pr/428'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/428'
git switch 'upstream-pr/428'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/428'
git switch 'main'
git merge --squash 'upstream-pr/428'
git switch 'main'
git merge --ff-only 'upstream-pr/428'
git switch 'main'
git merge 'upstream-pr/428'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!428
No description provided.