World renders now along with character models. [M4 Pro 24gb] #380

Open
opened 2026-11-27 15:12:30 +00:00 by Ketan-Kapse · 2 comments
Ketan-Kapse commented 2026-11-27 15:12:30 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Ketan-Kapse on 2026-11-27T15:12:30Z.


The world is rendering now into the prologue at 1-3 fps. Character models load with no hair. Shader issues throughout. Player fully controllable. Please let me know if screenshots are needed before I make a PR.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6649140750 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/380). Originally posted by [Ketan-Kapse](https://github.com/Ketan-Kapse) on 2026-11-27T15:12:30Z. --- The world is rendering now into the prologue at 1-3 fps. Character models load with no hair. Shader issues throughout. Player fully controllable. Please let me know if screenshots are needed before I make a PR.
Ketan-Kapse commented 2026-11-27 15:21:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Ketan-Kapse on 2026-11-27T15:21:37Z.


Measured numbers for this report (no screenshots, per CONTRIBUTING; counts and descriptions only).

Setup. M4 Pro, 24 GB, macOS 27.0.1, --console series-s, windowed 1280x720, warm shader cache. Local branch based on main 2a3b03d1 plus local changes (listed at the end). Switches: VICTORY_METAL_RESIDENCY_SETS=1 VICTORY_CONSOLE_PIPELINES=0 VICTORY_STEP_OVER=pool VICTORY_UPSCALER=6 VICTORY_PIPELINE_TIMEOUT_S=15 VICTORY_TRACE_FRAME_TIME=1 (the last one is a local diagnostic).

What the window shows. The prologue interior and the yard: geometry, textures, sky through the windows and character models are correct, lit, with the HUD prompts composited over the scene. Faults: heavy speckle noise on every indirectly lit interior surface, purple/green noise on the floor and at one doorway, dark smears on walls, hair missing on characters.

Speed and stability (10-minute run, world reached at about +3 min).

  • World: about 0.8 fps over the last 100 frames in this mode. =heap gave 1.25 to 1.3 fps in an earlier run, but on 24 GB it runs out of memory at world load (19 to 20 kIOGPUCommandBufferCallbackErrorOutOfMemory), and today it froze the whole machine for minutes at the load.
  • =1: 0 failed command buffers, 0 out-of-memory errors.
  • GPU "In use system memory" peaks at 18.6 GB; swap fills (run stopped by a local watchdog at +540 s with under 300 MB of swap free).
  • Mean world frame (last 100): wall 1,257 ms; host lock held 547 ms; remirror_tables 263 ms for about 114,000 descriptor mirrors; Metal encoding 25 ms (about 4,600 dispatches and 5,600 draws); GPU time 223 ms; kernel time of the command buffers 1,908 ms. So on this Mac the frame is waiting for memory first, and re-mirroring descriptors second.

One warning for anyone batching residency-set updates. A local build that deferred the heap sets' commit() (so one commit could carry removeAllocation(X) and addAllocation(X) of the same allocation) ended in a macOS kernel panic about 40 s after an out-of-memory burst: "Memory object not found in fMemoryCountedSet or fPendingMemorySet" @IOGPUGroupMemory.cpp:286 (IOGPUFamily, panicked task = the host). Reconciling the set at commit instead (at most one add or one remove per allocation per commit, none when membership is unchanged) has run twice since without a panic. One occurrence, so the cause is not proven.

Local changes behind this picture, in the order they mattered: mesh output stores emitted back to back after their values (Apple's compiler crashed on about 230 mesh+pixel pairs otherwise); buffer views spanning several pool runs; the view-stride table bound for shaders that take buffer views from the heap themselves (the GPU cullers were dropped without it); placed views aliasing the GPU-written object at the same address; the fourth corner of rectangle lists; PR 278 (typed and structured buffer views); present compositing the UI plane over the scene plane.

Next here: memory (host texture copies of placed textures seem to outlive the title's reuse of their memory), then the lighting noise.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7221959500 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/380#issuecomment-7221959500). Originally posted by [Ketan-Kapse](https://github.com/Ketan-Kapse) on 2026-11-27T15:21:37Z. --- Measured numbers for this report (no screenshots, per CONTRIBUTING; counts and descriptions only). **Setup.** M4 Pro, 24 GB, macOS 27.0.1, `--console series-s`, windowed 1280x720, warm shader cache. Local branch based on main 2a3b03d1 plus local changes (listed at the end). Switches: `VICTORY_METAL_RESIDENCY_SETS=1 VICTORY_CONSOLE_PIPELINES=0 VICTORY_STEP_OVER=pool VICTORY_UPSCALER=6 VICTORY_PIPELINE_TIMEOUT_S=15 VICTORY_TRACE_FRAME_TIME=1` (the last one is a local diagnostic). **What the window shows.** The prologue interior and the yard: geometry, textures, sky through the windows and character models are correct, lit, with the HUD prompts composited over the scene. Faults: heavy speckle noise on every indirectly lit interior surface, purple/green noise on the floor and at one doorway, dark smears on walls, hair missing on characters. **Speed and stability (10-minute run, world reached at about +3 min).** - World: about 0.8 fps over the last 100 frames in this mode. `=heap` gave 1.25 to 1.3 fps in an earlier run, but on 24 GB it runs out of memory at world load (19 to 20 `kIOGPUCommandBufferCallbackErrorOutOfMemory`), and today it froze the whole machine for minutes at the load. - `=1`: 0 failed command buffers, 0 out-of-memory errors. - GPU "In use system memory" peaks at 18.6 GB; swap fills (run stopped by a local watchdog at +540 s with under 300 MB of swap free). - Mean world frame (last 100): wall 1,257 ms; host lock held 547 ms; `remirror_tables` 263 ms for about 114,000 descriptor mirrors; Metal encoding 25 ms (about 4,600 dispatches and 5,600 draws); GPU time 223 ms; kernel time of the command buffers 1,908 ms. So on this Mac the frame is waiting for memory first, and re-mirroring descriptors second. **One warning for anyone batching residency-set updates.** A local build that deferred the heap sets' `commit()` (so one commit could carry `removeAllocation(X)` and `addAllocation(X)` of the same allocation) ended in a macOS kernel panic about 40 s after an out-of-memory burst: `"Memory object not found in fMemoryCountedSet or fPendingMemorySet" @IOGPUGroupMemory.cpp:286` (IOGPUFamily, panicked task = the host). Reconciling the set at commit instead (at most one add or one remove per allocation per commit, none when membership is unchanged) has run twice since without a panic. One occurrence, so the cause is not proven. **Local changes behind this picture, in the order they mattered:** mesh output stores emitted back to back after their values (Apple's compiler crashed on about 230 mesh+pixel pairs otherwise); buffer views spanning several pool runs; the view-stride table bound for shaders that take buffer views from the heap themselves (the GPU cullers were dropped without it); placed views aliasing the GPU-written object at the same address; the fourth corner of rectangle lists; PR 278 (typed and structured buffer views); present compositing the UI plane over the scene plane. Next here: memory (host texture copies of placed textures seem to outlive the title's reuse of their memory), then the lighting noise.
LakshanSivakumar commented 2026-11-27 15:28:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T15:28:09Z.


Hi send me some screenshots to me on Discord! My discord is nethergamerhd

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7222094407 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/380#issuecomment-7222094407). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-27T15:28:09Z. --- Hi send me some screenshots to me on Discord! My discord is nethergamerhd
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
LakshanSivakumar/Native-Victory-macOS#380
No description provided.