[Tester] Apple M5 Max 128 GB: the world's 1 fps and the audio dropouts are both the cold shader cache (cold vs warm, same commit) #592

Open
opened 2026-11-28 10:41:56 +00:00 by xarvel-temp · 0 comments
xarvel-temp commented 2026-11-28 10:41:56 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by xarvel-temp on 2026-11-28T10:41:56Z.


Mac

Apple M5 Max, 128 GB, macOS 27.2.1

Commit

b3c1a1b (from the log; the checkout is now at 9b49aa6)

How far did it get?

Further than that

What happened

Two runs of the same commit on the same Mac, one with a cold shader cache and one warm. The point of the report is the difference, because it changes two numbers the project quotes.

1. The world's frame rate in a cold run is mostly translation, not rendering.

Cold (first run of this build, shader cache empty for this translator):

  • prewarm 8192 shaders, 251 MB of DXIL, from +0.5 s to +148.4 s
  • 1738 first binds in a single frame (frame 2009)
  • the world's 64-frame blocks: 0.7 fps

Warm (second run, nothing else changed):

  • prewarm 16384 shaders, 517 MB of DXIL, from +0.5 s to +13.9 s (11x faster)
  • the world's 64-frame blocks: 2.4, 2.2, 2.1, 1.7 fps

So the world here is about 2 fps, not about 1. Dropped draws are unchanged, 25 % of them (recorded=488501 encoded=454382 no_pipeline=122360 at frame 1984), which is what I would expect: that is the refusals, not the cache.

2. The audio dropouts in a cold run are CPU starvation, not the audio path.

I counted the WASAPI: render client released frames in the last second lines and looked at peak:

  • cold: after the world loaded, only 42 % of seconds carried any sound (peak > 0.001); the longest run of digital silence was 49 s
  • warm: 111 of 111 seconds, 100 %

The device itself was never starved in either run: a full frames=48000-48480 with healthy padding in 307 of 308 seconds cold and 173 of 174 warm. So what the mixer was handed was silence, and it stopped happening as soon as the CPU was not busy translating. Worth knowing before anyone chases the spatial or DSP path for it.

Refusals in the warm run, for the record: 287 lines, grouped as 127 descriptors (90 "a descriptor neither loaded nor built", 27 "an image's dwords", 6 + 4 buffer address/format) and 129 lane masks (45 + 31 + 15 + 13 + 5 + 12 cross-lane + 9 barycentrics). 6 are the converter's own Fragment input(s) mismatching mesh shader output type(s), present in both runs.

Not explained by this report: the intro movie plays but stutters, and on the warm run it showed artefacts I cannot account for. bink2scarlett.dll binds fully (3 hle, 52 host, 5 title, 0 stubbed) and nothing else about it appears in the log.

Also: VICTORY_DEPTH_TWINS=0 was set for both runs.

Console: series-s
Shader converter: /usr/local/lib/libmetalirconverter.dylib 60073520 Some(SystemTime { tv_sec: 1792438727, tv_nsec: 0 }) (from the installed default)
VICTORY_* variables in this shell: VICTORY_DEPTH_TWINS=0

run-summary.sh
lines 4939, log span 209.8s, last frame 2087

-- frame rate (per frame block)
  frame      2  +    1.5s     5.5 fps
  frame      4  +    1.6s    52.6 fps
  frame      8  +    1.7s    29.9 fps
  frame     16  +    2.0s    30.4 fps
  frame     32  +    2.5s    29.8 fps
  frame     64  +    3.6s    30.0 fps
  frame    128  +    5.7s    30.0 fps
  frame    192  +    7.9s    30.0 fps
  frame    256  +   10.0s    30.0 fps
  frame    320  +   12.1s    30.0 fps
  frame    384  +   14.3s    30.0 fps
  frame    448  +   16.4s    30.0 fps
  frame    512  +   18.5s    30.0 fps
  frame    576  +   20.7s    30.0 fps
  frame    640  +   22.9s    28.5 fps
  frame    704  +   25.6s    23.4 fps
  frame    768  +   27.8s    29.9 fps
  frame    832  +   29.9s    30.0 fps
  frame    896  +   32.0s    30.0 fps
  frame    960  +   34.2s    30.0 fps
  frame   1024  +   36.3s    29.9 fps
  frame   1088  +   38.4s    30.1 fps
  frame   1152  +   40.6s    29.5 fps
  frame   1216  +   42.7s    30.0 fps
  frame   1280  +   44.9s    30.0 fps
  frame   1344  +   47.0s    30.0 fps
  frame   1408  +   49.1s    30.0 fps
  frame   1472  +   51.3s    30.0 fps
  frame   1536  +   53.4s    30.0 fps
  frame   1600  +   55.6s    29.1 fps
  frame   1664  +   60.0s    14.5 fps
  frame   1728  +   62.4s    26.8 fps
  frame   1792  +   65.3s    22.3 fps
  frame   1856  +   91.9s     2.4 fps
  frame   1920  +  121.2s     2.2 fps
  frame   1984  +  152.0s     2.1 fps
  frame   2048  +  189.7s     1.7 fps
  overall frames 1..2048: 10.9 fps

-- shader work
  first binds: 2834
  prewarm: 16384 shaders, 517 MB of DXIL, from t=+0.5s to t=+13.9s
  no timing fields on first-bind lines in this log; busiest frames by first binds:
    frame   1813  1729 first binds
    frame   1823  301 first binds
    frame   1875  68 first binds
    frame   1862  39 first binds
    frame   1856  31 first binds
  refused shaders: 287 lines, unique by reason:
  at frame~1805..2087 (first t=+65.7s)
       90  translation: GFXN code at H: a descriptor neither loaded nor built is not supported
       45  translation: GFXN code at H: a lane-mask join of an untracked mask: data, at a join of several edges is not supported
       31  translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: a program input is not supported
       27  translation: GFXN code at H: a descriptor's address or format read as data: an image's dwords N to N is not supported
       15  translation: GFXN code at H: a lane-mask join of an untracked mask: a value the translation could not make is not supported
       13  translation: GFXN code at H: a lane-mask join of an untracked mask: data, on the host's lanes is not supported
       13  translation: GFXN code at H: barycentrics read directly is not supported
       12  translation: GFXN code at H: a cross-lane operation between host waves in divergent code is not supported
        6  translation: GFXN code at H: a descriptor's address or format read as data: a buffer's base address (dword N) is not supported
        6  conversion: Fragment input(s) `user(halfN),user(halfN)` mismatching mesh shader output type(s) or not written by mesh shader
        5  translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width is not supported
        4  translation: GFXN code at H: a descriptor's address or format read as data: a buffer's dword N (format and type) is not supported

-- dropped work / warnings (by template)
      32  victory_gpu::native::glue: native draws so far frame=N recorded=N encoded=N no_pipeline=N no_texture=N mesh=N mesh_indirect=N indirect=N texture_copie
       1  victory_gpu::native::glue: native host drops work: a dispatch without a host compute pipeline (first time; counted in "native draws so far")
       1  victory_hle::modules::kernel: a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll" from=
       1  victory_gpu::native::glue: native host drops work: a rectangle-list draw of a described pipeline, drawn without its fourth corner (first time; counted
       1  victory_hle::host_posix::fake_dll: GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump
       1  victory_gpu::native::glue: native host drops work: a draw without a host render pipeline (refused or not translated) (first time; counted in "native d
       1  victory_gpu::native::glue: native host drops work: an indirect rectangle-list draw (first time; counted in "native draws so far")
       1  victory_gpu::object: method not implemented object="pipeline state" slot=H caller=""

-- GPU errors
  none

-- audio
  the device kept playing (no fallback to silence)
  mixer seconds: 207, spatial stream activations: 2, DSP connects: 1, DSP streams: 0

-- how it ended
  no unhandled exception or watchdog line (killed by --seconds or clean exit)
  last frame reached: 2087

Log

The scrubbed log (gzipped, made by tools/macos/tester-report.sh with the fix from #591, which these runs turned up) is 130 KB and I could not attach it through the API — say the word and I will attach it here. sha256 f50f746a44047d088698cd8d9943d2e237db0f8b8201da3ece79e27af6e4d873. The full run-summary.sh output for both runs is in the section above.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6663604493 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/592). Originally posted by [xarvel-temp](https://github.com/xarvel-temp) on 2026-11-28T10:41:56Z. --- ### Mac Apple M5 Max, 128 GB, macOS 27.2.1 ### Commit b3c1a1b (from the log; the checkout is now at 9b49aa6) ### How far did it get? Further than that ### What happened Two runs of the same commit on the same Mac, one with a cold shader cache and one warm. The point of the report is the difference, because it changes two numbers the project quotes. **1. The world's frame rate in a cold run is mostly translation, not rendering.** Cold (first run of this build, shader cache empty for this translator): - prewarm 8192 shaders, 251 MB of DXIL, from +0.5 s to **+148.4 s** - 1738 first binds in a single frame (frame 2009) - the world's 64-frame blocks: **0.7 fps** Warm (second run, nothing else changed): - prewarm 16384 shaders, 517 MB of DXIL, from +0.5 s to **+13.9 s** (11x faster) - the world's 64-frame blocks: **2.4, 2.2, 2.1, 1.7 fps** So the world here is about 2 fps, not about 1. Dropped draws are unchanged, 25 % of them (`recorded=488501 encoded=454382 no_pipeline=122360` at frame 1984), which is what I would expect: that is the refusals, not the cache. **2. The audio dropouts in a cold run are CPU starvation, not the audio path.** I counted the `WASAPI: render client released frames in the last second` lines and looked at `peak`: - cold: after the world loaded, only **42 %** of seconds carried any sound (`peak` > 0.001); the longest run of digital silence was **49 s** - warm: **111 of 111 seconds, 100 %** The device itself was never starved in either run: a full `frames=48000`-48480 with healthy `padding` in 307 of 308 seconds cold and 173 of 174 warm. So what the mixer was handed was silence, and it stopped happening as soon as the CPU was not busy translating. Worth knowing before anyone chases the spatial or DSP path for it. **Refusals in the warm run**, for the record: 287 lines, grouped as 127 descriptors (90 "a descriptor neither loaded nor built", 27 "an image's dwords", 6 + 4 buffer address/format) and 129 lane masks (45 + 31 + 15 + 13 + 5 + 12 cross-lane + 9 barycentrics). 6 are the converter's own `Fragment input(s) mismatching mesh shader output type(s)`, present in both runs. **Not explained by this report:** the intro movie plays but stutters, and on the warm run it showed artefacts I cannot account for. `bink2scarlett.dll` binds fully (3 hle, 52 host, 5 title, 0 stubbed) and nothing else about it appears in the log. Also: `VICTORY_DEPTH_TWINS=0` was set for both runs. Console: series-s Shader converter: /usr/local/lib/libmetalirconverter.dylib 60073520 Some(SystemTime { tv_sec: 1792438727, tv_nsec: 0 }) (from the installed default) VICTORY_* variables in this shell: VICTORY_DEPTH_TWINS=0 <details><summary>run-summary.sh</summary> ``` lines 4939, log span 209.8s, last frame 2087 -- frame rate (per frame block) frame 2 + 1.5s 5.5 fps frame 4 + 1.6s 52.6 fps frame 8 + 1.7s 29.9 fps frame 16 + 2.0s 30.4 fps frame 32 + 2.5s 29.8 fps frame 64 + 3.6s 30.0 fps frame 128 + 5.7s 30.0 fps frame 192 + 7.9s 30.0 fps frame 256 + 10.0s 30.0 fps frame 320 + 12.1s 30.0 fps frame 384 + 14.3s 30.0 fps frame 448 + 16.4s 30.0 fps frame 512 + 18.5s 30.0 fps frame 576 + 20.7s 30.0 fps frame 640 + 22.9s 28.5 fps frame 704 + 25.6s 23.4 fps frame 768 + 27.8s 29.9 fps frame 832 + 29.9s 30.0 fps frame 896 + 32.0s 30.0 fps frame 960 + 34.2s 30.0 fps frame 1024 + 36.3s 29.9 fps frame 1088 + 38.4s 30.1 fps frame 1152 + 40.6s 29.5 fps frame 1216 + 42.7s 30.0 fps frame 1280 + 44.9s 30.0 fps frame 1344 + 47.0s 30.0 fps frame 1408 + 49.1s 30.0 fps frame 1472 + 51.3s 30.0 fps frame 1536 + 53.4s 30.0 fps frame 1600 + 55.6s 29.1 fps frame 1664 + 60.0s 14.5 fps frame 1728 + 62.4s 26.8 fps frame 1792 + 65.3s 22.3 fps frame 1856 + 91.9s 2.4 fps frame 1920 + 121.2s 2.2 fps frame 1984 + 152.0s 2.1 fps frame 2048 + 189.7s 1.7 fps overall frames 1..2048: 10.9 fps -- shader work first binds: 2834 prewarm: 16384 shaders, 517 MB of DXIL, from t=+0.5s to t=+13.9s no timing fields on first-bind lines in this log; busiest frames by first binds: frame 1813 1729 first binds frame 1823 301 first binds frame 1875 68 first binds frame 1862 39 first binds frame 1856 31 first binds refused shaders: 287 lines, unique by reason: at frame~1805..2087 (first t=+65.7s) 90 translation: GFXN code at H: a descriptor neither loaded nor built is not supported 45 translation: GFXN code at H: a lane-mask join of an untracked mask: data, at a join of several edges is not supported 31 translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: a program input is not supported 27 translation: GFXN code at H: a descriptor's address or format read as data: an image's dwords N to N is not supported 15 translation: GFXN code at H: a lane-mask join of an untracked mask: a value the translation could not make is not supported 13 translation: GFXN code at H: a lane-mask join of an untracked mask: data, on the host's lanes is not supported 13 translation: GFXN code at H: barycentrics read directly is not supported 12 translation: GFXN code at H: a cross-lane operation between host waves in divergent code is not supported 6 translation: GFXN code at H: a descriptor's address or format read as data: a buffer's base address (dword N) is not supported 6 conversion: Fragment input(s) `user(halfN),user(halfN)` mismatching mesh shader output type(s) or not written by mesh shader 5 translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width is not supported 4 translation: GFXN code at H: a descriptor's address or format read as data: a buffer's dword N (format and type) is not supported -- dropped work / warnings (by template) 32 victory_gpu::native::glue: native draws so far frame=N recorded=N encoded=N no_pipeline=N no_texture=N mesh=N mesh_indirect=N indirect=N texture_copie 1 victory_gpu::native::glue: native host drops work: a dispatch without a host compute pipeline (first time; counted in "native draws so far") 1 victory_hle::modules::kernel: a host DLL outside the host policy: refused dll="amd_fidelityfx_upscaler_xbox.dll" from= 1 victory_gpu::native::glue: native host drops work: a rectangle-list draw of a described pipeline, drawn without its fourth corner (first time; counted 1 victory_hle::host_posix::fake_dll: GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump 1 victory_gpu::native::glue: native host drops work: a draw without a host render pipeline (refused or not translated) (first time; counted in "native d 1 victory_gpu::native::glue: native host drops work: an indirect rectangle-list draw (first time; counted in "native draws so far") 1 victory_gpu::object: method not implemented object="pipeline state" slot=H caller="" -- GPU errors none -- audio the device kept playing (no fallback to silence) mixer seconds: 207, spatial stream activations: 2, DSP connects: 1, DSP streams: 0 -- how it ended no unhandled exception or watchdog line (killed by --seconds or clean exit) last frame reached: 2087 ``` </details> ### Log The scrubbed log (gzipped, made by `tools/macos/tester-report.sh` **with the fix from #591**, which these runs turned up) is 130 KB and I could not attach it through the API — say the word and I will attach it here. sha256 `f50f746a44047d088698cd8d9943d2e237db0f8b8201da3ece79e27af6e4d873`. The full `run-summary.sh` output for both runs is in the section above.
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#592
No description provided.