perf: Hello Neighbor 2 (PPSA07426) gameplay stays at 2.5-4 FPS because 1 MiB buffers are not registered and are recopied every frame #5529

Open
opened 2026-10-13 22:40:28 +00:00 by ivica00 · 4 comments
ivica00 commented 2026-10-13 22:40:28 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ivica00 on 2026-10-13T22:40:28Z.


Title and scene

Hello Neighbor 2, PPSA07426, Unreal. Gameplay after Continue, 3840x2160, warm shader and pipeline caches, no ProcDump and no GPU frame readback. The picture in these runs is still wrong (black scene, a visible crosshair, green/yellow/magenta blocks, mixed DCC keys). That is a separate correctness problem. The numbers below were taken with that picture, and a performance change should not try to fix DCC in the same pull request.

The runtime for the first trace was a dirty tree at 307767675 (#4216), before #4698. #4698 has since merged and is included in the later windows. Both are the same scene.

What is slow

The GPU is waiting on the CPU. It is busy for about 39 ms per present in every window. The rest of the frame is the queue workers.

Control trace, APS5_TRACE_SECONDS=180:30, presents 1516–1595 (79 presents in 30.3 s), before #4698:

  • Frame p50 375.6 ms, p90 416.9 ms, p99 518.8 ms. On-screen counter 2.25 FPS. The log shows 27 presents / 10 s, GPU busy 39.7 ms, idle gaps 344.9 ms.
  • Both workers are saturated: queue 0 99.1%, queue 0x20 98.8%.
  • Largest phase: Driver.Packet.memory_wait 373.7 ms/frame. Resources.Complete is 163.5 ms/frame. Inclusive Driver.Packet across both workers is larger than the frame and should not be read as the frame time.
  • Draw resources 3988 ms / 10 s, of which upload 3636.8 ms. Template hit 96 µs (22,261) against a build at 794 µs (5,127).

After #4698 (shared registry snapshot). This is the only change that has moved this scene:

  • 40–43 presents / 10 s, on-screen 4.26 FPS. GPU busy still 38–40 ms. Idle gaps fell to 195–216 ms. inflight_wait p50 is 0.38 ms, so the present is not waiting on the swapchain.
  • Import lookup fell from +763 ms to +15–16 ms per 2,000 uploads. Guest read did not: +135–141 ms per 2,000 uploads, about 67 µs each.
  • Draw upload fell from ~3604 ms to ~615 ms / 10 s. Draw driver phases stayed about 7.7 s / 10 s.

A later window of the same scene, with the counters below, was a bit slower (32–33 presents / 10 s, GPU busy 38.3–40.2 ms, idle gaps 267–275 ms) and is the source of the phase split. If the CPU wait disappeared and the GPU work stayed 39 ms, the present rate would be about 25/s. Nothing measured here gets there.

The loop that fills the frame

About 19% of draws miss the resource cache, and those misses are builds that are never inserted.

Raising APS5_RESOURCE_CACHE_ENTRIES from 1024 to 4096 left the miss rate at 18.5% → 18.6–19.6% across four windows. The misses are not evictions. In a 41,333-draw window: 33,204 template hits, 7,483 builds, and the draw-insert split was 23 inserted, 0 unrecorded, 7,358 unreusable. HasCachedStorageImages skips were 0. Late windows of the same counter were 8,433 and 8,915 unreusable per 10 s.

ShaderResources::noteReusable leaves reusable false when GuestBufferMemory::DirectRegions() returns nothing. DirectRegions() returns nothing as soon as any region has no host import, no fixed read-only mirror, and no staged GPU copy. One outside-import region in a build throws away the whole build: it is rebuilt on the next draw and the guest bytes are read again.

Those regions are copied on the CPU, not bound. A cumulative [buffers] copied regions on the CPU line from gameplay:

39000 copied regions: 9254 snapshots (13 MiB), 0 misaligned in imports (0 MiB), 29746 outside imports (34894 MiB)
  0x2000000000: 8 regions / 26 MiB
  0x2020000000: 457 / 1171 MiB      (this count did not move across samples)
  0x2080000000: 924 / 5428 MiB      (still creeping)
  0x20b0000000: 112 / 23 MiB
  0x20d0000000: 28245 / 28245 MiB   (exactly 1 MiB each, and this is the bucket that keeps growing)

The counts are cumulative for the process. The per-10 s fact is the align-cover probe below, not "28 GiB copied every 10 s". GPU copies of ranges that are imported are already happening beside this (about 15,800 regions and ~2.1 GiB copied out and back on the GPU). The CPU path is only the ranges findImport misses. Regions outside an import never take the GPU copy path.

Why they are not imported

Host alignment on this machine is 4096. Storage-buffer offset alignment is 4, so a 1 MiB page-aligned range could be bound in place if it were in the registry. It is not.

A local probe widened an import to host alignment only through bytes that no other registered range owns (runCovers / importRun in GuestBufferMemory.cpp). Over gameplay windows it recorded:

  • kept 0 / attempted 0
  • neighbour-blocked 0, still unaligned 0
  • not in a registered range: 8,847–9,642 per 10 s

So the hot 1 MiB range is not inside any GuestAllocations lease. runCovers fails before the alignment check. The earlier theory, that the guest heap registers the user pointer 32 bytes past a page-aligned block, is wrong for this class: there is no registered block to extend. There is also no host-import budget message. The texture cache sat around 378 MiB against a ~6116 MiB budget. Misaligned-in-import copies were 0 MiB.

The open question a pull request has to answer: why a buffer region at 0x20d0000000 (256 MiB granule; the logged prefix is address >> 28) is absent from the lease. Either the mapping is never registered, or the bound range starts outside the registered object. 0x2080000000 is a second outside-import class (hundreds of regions, several MiB each, still growing slowly) and should not be assumed to be the same cause.

What a pull request should change, and how to show it

Register those ranges and import them on Windows, or otherwise make DirectRegions() succeed for a build whose only defect is one of these regions. An environment flag is appropriate for the first cut. Please do not skip the copy of data the guest rewrites every frame; that was checked and it is real traffic.

Same scene, warm caches, no ProcDump, no frame readback, APS5_PROFILE_DRAW=1. Compare gameplay with gameplay:

  • 0x20d outside-import regions stop accumulating one 1 MiB region at a time
  • draw inserts unreusable falls, and the ~19% miss rate falls with it
  • draw upload ms / 10 s falls
  • presents / 10 s rise, while GPU busy stays near 39 ms

A build that becomes reusable only by dropping a guest read of data that changed is not a fix.

Measured, and not this bug

These showed up in the same 10 s windows. They are real CPU time, and they are separate changes:

  • Target lookup. 54,351 resident lookups, 29.1 million pages walked, 702 ms. 51,733 of the lookups were partial-scissor. About 100 lookups cost ≥ 1 ms.
  • Vertex setup, 630–960 ms. Not isolated.
  • Record, ~1.0 s. Lookup, 0.7–1.0 s. Keep, ~240 ms. Hook waits inside draws, ~200 ms.
  • Address-based builds. 550–650 per 10 s, ~850–1000 µs each, ~280–300 ms of the resources "other" time. About 10% of the unreusable builds. NeverReusable for a BDA pagetable is by design; do not fold that into the import fix.
  • Dispatch V# churn. The top variants (c47 ~400, fc4 ~330, others ~150–190 per 10 s) have sameKey 0. The resource cache cannot hit them. Staging was 791–897 regions and 185–212 MiB copied in and back per 10 s, 0 atomics, and only ~25% of the bytes came from a reused build. The other 75% is a fresh guest write. RecordStagingCopies copies again on every use on purpose, and the copy-back is the whole written range because store extents are not known. Skipping that copy without a write watch keeps stale data.

Open pull requests that do not match this profile

  • #5482 and #290 change the host-import budget. This run never reported the budget full, and the failing address is not registered, so it never asks for budget. #290 also needs a rebase.
  • #4517 and #5372 join adjacent registered ranges. runCovers finds no registered range under 0x20d.
  • #5390, #5309, #4449, and #2434 are Linux udmabuf / dma-buf imports. This run is Windows.
  • #5469 reuses an unchanged read-only fallback. The growing 0x20d data is rewritten, and untracked memory is outside that pull request.
  • #4878 skips compares of Windows memory that was imported and then unwatched. These buffers were never imported. The profile is guest read on the upload path, not a multi-second memcmp.

Machine

AMD Radeon RX 9070 XT (vendor 0x1002, device 0x7550, subgroup 64), AMD proprietary driver 26.9.2 (LLPC), Windows 10.0.19045, 3840x2160. Working set of the process climbed to about 20–22.5 GiB on a 32 GiB machine. That is pressure worth watching. It is not, by itself, evidence of a leak.

AI-assisted analysis: yes.

Summary line

{"commit":"307767675298","dirty":true,"note":"control, before #4698; later windows include merged #4698","env":{"APS5_TRACE_SECONDS":"180:30","APS5_PROFILE_DRAW":"1"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.9.2 (LLPC)","os":"Windows 10.0.19045","resolution":"3840x2160","window":{"spec":"seconds 180:30","first_present":1516,"ms":30285.943},"presents":79,"frame_ms":{"p50":375.566,"p90":416.879,"p99":518.825,"max":518.825},"gpu_busy_ms_per_present":38.593,"worker_busy_pct":{"queue worker 0x0":99.14,"queue worker 0x20":98.782},"top_phases_ms_per_frame":{"Driver.Packet.memory_wait":373.731,"Driver.Packet.draw":325.787,"Graphics.Draw":254.185,"Resources.Complete":163.516}}
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5838821772 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5529). Originally posted by [ivica00](https://github.com/ivica00) on 2026-10-13T22:40:28Z. --- ### Title and scene Hello Neighbor 2, **PPSA07426**, Unreal. Gameplay after Continue, 3840x2160, warm shader and pipeline caches, no ProcDump and no GPU frame readback. The picture in these runs is still wrong (black scene, a visible crosshair, green/yellow/magenta blocks, `mixed DCC keys`). That is a separate correctness problem. The numbers below were taken with that picture, and a performance change should not try to fix DCC in the same pull request. The runtime for the first trace was a dirty tree at `307767675` (#4216), before #4698. #4698 has since merged and is included in the later windows. Both are the same scene. ### What is slow The GPU is waiting on the CPU. It is busy for about **39 ms per present** in every window. The rest of the frame is the queue workers. Control trace, `APS5_TRACE_SECONDS=180:30`, presents 1516–1595 (79 presents in 30.3 s), before #4698: - Frame p50 **375.6 ms**, p90 416.9 ms, p99 518.8 ms. On-screen counter **2.25 FPS**. The log shows **27 presents / 10 s**, GPU busy 39.7 ms, idle gaps **344.9 ms**. - Both workers are saturated: queue 0 **99.1%**, queue 0x20 **98.8%**. - Largest phase: `Driver.Packet.memory_wait` **373.7 ms/frame**. `Resources.Complete` is 163.5 ms/frame. Inclusive `Driver.Packet` across both workers is larger than the frame and should not be read as the frame time. - Draw resources **3988 ms / 10 s**, of which **upload 3636.8 ms**. Template hit 96 µs (22,261) against a build at 794 µs (5,127). After #4698 (shared registry snapshot). This is the only change that has moved this scene: - **40–43 presents / 10 s**, on-screen **4.26 FPS**. GPU busy still **38–40 ms**. Idle gaps fell to **195–216 ms**. `inflight_wait` p50 is 0.38 ms, so the present is not waiting on the swapchain. - Import lookup fell from **+763 ms to +15–16 ms per 2,000 uploads**. Guest read did not: **+135–141 ms per 2,000 uploads**, about 67 µs each. - Draw upload fell from ~3604 ms to **~615 ms / 10 s**. Draw driver phases stayed about **7.7 s / 10 s**. A later window of the same scene, with the counters below, was a bit slower (**32–33 presents / 10 s**, GPU busy 38.3–40.2 ms, idle gaps 267–275 ms) and is the source of the phase split. If the CPU wait disappeared and the GPU work stayed 39 ms, the present rate would be about 25/s. Nothing measured here gets there. ### The loop that fills the frame About **19% of draws miss the resource cache**, and those misses are builds that are never inserted. Raising `APS5_RESOURCE_CACHE_ENTRIES` from 1024 to 4096 left the miss rate at **18.5% → 18.6–19.6%** across four windows. The misses are not evictions. In a 41,333-draw window: **33,204 template hits**, **7,483 builds**, and the draw-insert split was **23 inserted, 0 unrecorded, 7,358 unreusable**. `HasCachedStorageImages` skips were **0**. Late windows of the same counter were 8,433 and 8,915 unreusable per 10 s. `ShaderResources::noteReusable` leaves `reusable` false when `GuestBufferMemory::DirectRegions()` returns nothing. `DirectRegions()` returns nothing as soon as any region has no host import, no fixed read-only mirror, and no staged GPU copy. One outside-import region in a build throws away the whole build: it is rebuilt on the next draw and the guest bytes are read again. Those regions are copied on the CPU, not bound. A cumulative `[buffers] copied regions on the CPU` line from gameplay: ``` 39000 copied regions: 9254 snapshots (13 MiB), 0 misaligned in imports (0 MiB), 29746 outside imports (34894 MiB) 0x2000000000: 8 regions / 26 MiB 0x2020000000: 457 / 1171 MiB (this count did not move across samples) 0x2080000000: 924 / 5428 MiB (still creeping) 0x20b0000000: 112 / 23 MiB 0x20d0000000: 28245 / 28245 MiB (exactly 1 MiB each, and this is the bucket that keeps growing) ``` The counts are cumulative for the process. The per-10 s fact is the align-cover probe below, not "28 GiB copied every 10 s". GPU copies of ranges that *are* imported are already happening beside this (about 15,800 regions and ~2.1 GiB copied out and back on the GPU). The CPU path is only the ranges `findImport` misses. Regions outside an import never take the GPU copy path. ### Why they are not imported Host alignment on this machine is **4096**. Storage-buffer offset alignment is **4**, so a 1 MiB page-aligned range could be bound in place if it were in the registry. It is not. A local probe widened an import to host alignment only through bytes that no other registered range owns (`runCovers` / `importRun` in `GuestBufferMemory.cpp`). Over gameplay windows it recorded: - kept **0** / attempted **0** - neighbour-blocked **0**, still unaligned **0** - **not in a registered range: 8,847–9,642 per 10 s** So the hot 1 MiB range is not inside any `GuestAllocations` lease. `runCovers` fails before the alignment check. The earlier theory, that the guest heap registers the user pointer 32 bytes past a page-aligned block, is wrong for this class: there is no registered block to extend. There is also no host-import budget message. The texture cache sat around 378 MiB against a ~6116 MiB budget. Misaligned-in-import copies were **0 MiB**. The open question a pull request has to answer: why a buffer region at `0x20d0000000` (256 MiB granule; the logged prefix is `address >> 28`) is absent from the lease. Either the mapping is never registered, or the bound range starts outside the registered object. `0x2080000000` is a second outside-import class (hundreds of regions, several MiB each, still growing slowly) and should not be assumed to be the same cause. ### What a pull request should change, and how to show it Register those ranges and import them on Windows, or otherwise make `DirectRegions()` succeed for a build whose only defect is one of these regions. An environment flag is appropriate for the first cut. Please do not skip the copy of data the guest rewrites every frame; that was checked and it is real traffic. Same scene, warm caches, no ProcDump, no frame readback, `APS5_PROFILE_DRAW=1`. Compare gameplay with gameplay: - `0x20d` outside-import regions stop accumulating one 1 MiB region at a time - `draw inserts` unreusable falls, and the ~19% miss rate falls with it - draw `upload` ms / 10 s falls - presents / 10 s rise, while GPU busy stays near 39 ms A build that becomes reusable only by dropping a guest read of data that changed is not a fix. ### Measured, and not this bug These showed up in the same 10 s windows. They are real CPU time, and they are separate changes: - **Target lookup.** 54,351 resident lookups, **29.1 million pages walked**, **702 ms**. 51,733 of the lookups were partial-scissor. About 100 lookups cost ≥ 1 ms. - **Vertex setup, 630–960 ms.** Not isolated. - **Record, ~1.0 s. Lookup, 0.7–1.0 s. Keep, ~240 ms.** Hook waits inside draws, ~200 ms. - **Address-based builds.** 550–650 per 10 s, ~850–1000 µs each, ~280–300 ms of the resources "other" time. About 10% of the unreusable builds. `NeverReusable` for a BDA pagetable is by design; do not fold that into the import fix. - **Dispatch V# churn.** The top variants (`c47` ~400, `fc4` ~330, others ~150–190 per 10 s) have `sameKey 0`. The resource cache cannot hit them. Staging was 791–897 regions and 185–212 MiB copied in and back per 10 s, **0 atomics**, and only ~25% of the bytes came from a reused build. The other 75% is a fresh guest write. `RecordStagingCopies` copies again on every use on purpose, and the copy-back is the whole written range because store extents are not known. Skipping that copy without a write watch keeps stale data. ### Open pull requests that do not match this profile - **#5482** and **#290** change the host-import budget. This run never reported the budget full, and the failing address is not registered, so it never asks for budget. #290 also needs a rebase. - **#4517** and **#5372** join adjacent *registered* ranges. `runCovers` finds no registered range under `0x20d`. - **#5390**, **#5309**, **#4449**, and **#2434** are Linux udmabuf / dma-buf imports. This run is Windows. - **#5469** reuses an unchanged read-only fallback. The growing `0x20d` data is rewritten, and untracked memory is outside that pull request. - **#4878** skips compares of Windows memory that was imported and then unwatched. These buffers were never imported. The profile is `guest read` on the upload path, not a multi-second `memcmp`. ### Machine AMD Radeon RX 9070 XT (vendor 0x1002, device 0x7550, subgroup 64), AMD proprietary driver 26.9.2 (LLPC), Windows 10.0.19045, 3840x2160. Working set of the process climbed to about 20–22.5 GiB on a 32 GiB machine. That is pressure worth watching. It is not, by itself, evidence of a leak. AI-assisted analysis: yes. ### Summary line ```json {"commit":"307767675298","dirty":true,"note":"control, before #4698; later windows include merged #4698","env":{"APS5_TRACE_SECONDS":"180:30","APS5_PROFILE_DRAW":"1"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.9.2 (LLPC)","os":"Windows 10.0.19045","resolution":"3840x2160","window":{"spec":"seconds 180:30","first_present":1516,"ms":30285.943},"presents":79,"frame_ms":{"p50":375.566,"p90":416.879,"p99":518.825,"max":518.825},"gpu_busy_ms_per_present":38.593,"worker_busy_pct":{"queue worker 0x0":99.14,"queue worker 0x20":98.782},"top_phases_ms_per_frame":{"Driver.Packet.memory_wait":373.731,"Driver.Packet.draw":325.787,"Graphics.Draw":254.185,"Resources.Complete":163.516}} ```
ivica00 commented 2026-10-13 23:41:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ivica00 on 2026-10-13T23:41:05Z.


@AlxcBTW if you have agents free overnight, this is the one worth picking up.

The open question is why the hot 1 MiB buffers at 0x20d0000000 are missing from the GuestAllocations lease. runCovers fails before the alignment check, so they are recopied on the CPU every frame and the draw is never reusable. A first cut behind an environment flag that gets those ranges imported on Windows, measured on the same Hello Neighbor 2 gameplay scene, is the change that would move the 2.5–4 FPS number. The broken picture (mixed DCC keys) is a separate problem and should stay out of that pull request.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157530306 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5529#issuecomment-6157530306). Originally posted by [ivica00](https://github.com/ivica00) on 2026-10-13T23:41:05Z. --- @AlxcBTW if you have agents free overnight, this is the one worth picking up. The open question is why the hot 1 MiB buffers at `0x20d0000000` are missing from the `GuestAllocations` lease. `runCovers` fails before the alignment check, so they are recopied on the CPU every frame and the draw is never reusable. A first cut behind an environment flag that gets those ranges imported on Windows, measured on the same Hello Neighbor 2 gameplay scene, is the change that would move the 2.5–4 FPS number. The broken picture (mixed DCC keys) is a separate problem and should stay out of that pull request.
AlxcBTW commented 2026-10-13 23:42:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-13T23:42:00Z.


@ivica00 @CnRJay thanks for the tag and the write-up. I'm taking it tonight. Sword of the Sea (UE5, Windows) shows the same class: draws copy moved buffers outside imports on the CPU (earlier lab runs measured hundreds of GB per load), and an agent is already on that draw copy path. The first step is to check in SotS whether those regions are absent from the GuestAllocations lease the same way, and which guest mapping path creates them without registering them. If it's the same cause, the first cut registers those ranges so they import and bind in place, behind an env flag, without dropping copies of data the guest rewrites. I can't run Hello Neighbor 2 here, so I'd need your numbers on the same scene for the PR. I'll post what we find here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157541734 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5529#issuecomment-6157541734). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-13T23:42:00Z. --- @ivica00 @CnRJay thanks for the tag and the write-up. I'm taking it tonight. Sword of the Sea (UE5, Windows) shows the same class: draws copy moved buffers outside imports on the CPU (earlier lab runs measured hundreds of GB per load), and an agent is already on that draw copy path. The first step is to check in SotS whether those regions are absent from the `GuestAllocations` lease the same way, and which guest mapping path creates them without registering them. If it's the same cause, the first cut registers those ranges so they import and bind in place, behind an env flag, without dropping copies of data the guest rewrites. I can't run Hello Neighbor 2 here, so I'd need your numbers on the same scene for the PR. I'll post what we find here.
AlxcBTW commented 2026-10-14 00:44:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-14T00:44:01Z.


First finding, plus a branch to try on your scene. Untested in a game so far.

In Sword of the Sea the same class exists but is small (~95 outside-import regions, 25 MiB per 10 s in loading, near zero in gameplay). Reading the code, the prime suspect is memory a title maps for the GPU only: prot 0x10/0x20 without the CPU bits 0x1/0x2. The host maps those pages readable (LinuxProtFromSce), but the allocation registry records them as not readable, so the readable lease never holds a run over them. runCovers fails, and they're copied on every bind.

Branch AlxcBTW/AnyPS5:exp/import-gpu-only (f9d780325, one commit on current main; fork CI run 38491783977 running):

  • With APS5_PROFILE_DRAW=1, every outside-import region is classified: unregistered / GPU-only / no access / crosses registrations / covered but not imported. The cumulative [buffers] CPU-copy line gets the tallies plus the first four samples of each cause. That alone should tell us what 0x20d0000000 is.
  • With APS5_IMPORT_GPU_ONLY=1 (off by default), the registry's readable and writable bits also count the GPU bits, so GPU-only mappings join the lease and are imported and bound in place. The protection the title queries stays the recorded one.

If the classifier says 0x20d… is GPU-only, the flag row is the A/B you described: 0x20d regions stop accumulating, unreusable builds and upload ms fall, presents rise. If it says unregistered or something else, the samples show which mapping path to follow next.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158301268 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5529#issuecomment-6158301268). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-14T00:44:01Z. --- First finding, plus a branch to try on your scene. Untested in a game so far. In Sword of the Sea the same class exists but is small (~95 outside-import regions, 25 MiB per 10 s in loading, near zero in gameplay). Reading the code, the prime suspect is memory a title maps for the **GPU only**: prot 0x10/0x20 without the CPU bits 0x1/0x2. The host maps those pages readable (`LinuxProtFromSce`), but the allocation registry records them as not readable, so the readable lease never holds a run over them. `runCovers` fails, and they're copied on every bind. Branch `AlxcBTW/AnyPS5:exp/import-gpu-only` (`f9d780325`, one commit on current `main`; fork CI [run 38491783977](https://github.com/AlxcBTW/AnyPS5/actions/runs/38491783977) running): - With `APS5_PROFILE_DRAW=1`, every outside-import region is classified: unregistered / GPU-only / no access / crosses registrations / covered but not imported. The cumulative `[buffers]` CPU-copy line gets the tallies plus the first four samples of each cause. That alone should tell us what `0x20d0000000` is. - With `APS5_IMPORT_GPU_ONLY=1` (off by default), the registry's readable and writable bits also count the GPU bits, so GPU-only mappings join the lease and are imported and bound in place. The protection the title queries stays the recorded one. If the classifier says `0x20d…` is GPU-only, the flag row is the A/B you described: `0x20d` regions stop accumulating, unreusable builds and upload ms fall, presents rise. If it says unregistered or something else, the samples show which mapping path to follow next.
m335671 commented 2026-10-18 23:15:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by m335671 on 2026-10-18T23:15:23Z.


Hello Neighbor 2 (PPSA07426, 01.000.000) on your branch f9d780325, Windows 11 Pro 26200, Ryzen 9 7900, RTX 4070 12 GB (NVIDIA 616.92), WinLibs GCC 15.2.0. Gameplay, standing still, APS5_PROFILE_DRAW=1, warm caches, one run without and one run with APS5_IMPORT_GPU_ONLY=1. The picture is wrong here too (dark scene, wrong colours, missing models), as in the original report.

The classifier answers the open question for this title: every outside-import region is crosses registrations, and none is GPU-only.

without flag: 64130 outside imports (115772 MiB): ... 0x2070000000:7148/6701MiB 0x2080000000:2656/15564MiB 0x20b0000000:2005/415MiB 0x20c0000000:424/658MiB 0x20d0000000:51519/92331MiB ...; outside imports by cause: unregistered 0/0MiB GPU-only 0/0MiB no access 0/0MiB crosses registrations 64130/115772MiB covered, not imported 0/0MiB
with flag:    123966 outside imports (133927 MiB): ... 0x2030000000:2909/6117MiB 0x2080000000:1434/8405MiB 0x20d0000000:119125/119128MiB ...; outside imports by cause: unregistered 0/0MiB GPU-only 0/0MiB no access 0/0MiB crosses registrations 123966/133927MiB covered, not imported 0/0MiB

So the hot 0x20d0000000 regions (1 MiB each, as in the report) do sit inside registered memory, but they span more than one registration, and runCovers refuses them for that reason. The GPU-only flag has nothing to act on here.

Frame rate in the same spot (last 8 windows each):

presents / 10 s GPU busy / frame idle gaps / frame
without flag 30–39 (mostly 36–39) 109–155 ms 147–214 ms
with flag 23–26 168–185 ms 214–279 ms

I wouldn't read the drop as the flag's doing. GPU busy also went up by about 60 ms, and the flag changes nothing in the classifier, so the camera most likely wasn't framed identically between the two runs. That's one run per side with manual positioning.

AI-assisted: yes (Claude Code). The builds, the log analysis and this comment were done and written by Claude Code on my machine; I played to the spot and held still.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256383050 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5529#issuecomment-6256383050). Originally posted by [m335671](https://github.com/m335671) on 2026-10-18T23:15:23Z. --- Hello Neighbor 2 (PPSA07426, 01.000.000) on your branch `f9d780325`, Windows 11 Pro 26200, Ryzen 9 7900, RTX 4070 12 GB (NVIDIA 616.92), WinLibs GCC 15.2.0. Gameplay, standing still, `APS5_PROFILE_DRAW=1`, warm caches, one run without and one run with `APS5_IMPORT_GPU_ONLY=1`. The picture is wrong here too (dark scene, wrong colours, missing models), as in the original report. The classifier answers the open question for this title: every outside-import region is `crosses registrations`, and none is GPU-only. ``` without flag: 64130 outside imports (115772 MiB): ... 0x2070000000:7148/6701MiB 0x2080000000:2656/15564MiB 0x20b0000000:2005/415MiB 0x20c0000000:424/658MiB 0x20d0000000:51519/92331MiB ...; outside imports by cause: unregistered 0/0MiB GPU-only 0/0MiB no access 0/0MiB crosses registrations 64130/115772MiB covered, not imported 0/0MiB with flag: 123966 outside imports (133927 MiB): ... 0x2030000000:2909/6117MiB 0x2080000000:1434/8405MiB 0x20d0000000:119125/119128MiB ...; outside imports by cause: unregistered 0/0MiB GPU-only 0/0MiB no access 0/0MiB crosses registrations 123966/133927MiB covered, not imported 0/0MiB ``` So the hot `0x20d0000000` regions (1 MiB each, as in the report) do sit inside registered memory, but they span more than one registration, and `runCovers` refuses them for that reason. The GPU-only flag has nothing to act on here. Frame rate in the same spot (last 8 windows each): | | presents / 10 s | GPU busy / frame | idle gaps / frame | |---|---|---|---| | without flag | 30–39 (mostly 36–39) | 109–155 ms | 147–214 ms | | with flag | 23–26 | 168–185 ms | 214–279 ms | I wouldn't read the drop as the flag's doing. GPU busy also went up by about 60 ms, and the flag changes nothing in the classifier, so the camera most likely wasn't framed identically between the two runs. That's one run per side with manual positioning. AI-assisted: yes (Claude Code). The builds, the log analysis and this comment were done and written by Claude Code on my machine; I played to the spot and held still.
Sign in to join this conversation.
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
boykopovar/AnyPS5#5529
No description provided.