Metal GPU timeout at about 53 s stops presents #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T06:57:17Z.
At about 1,400 frames a Metal command buffer fails with kIOGPUCommandBufferCallbackErrorTimeout; a fence is left behind (signal 2836, GPU at 2832) and presents stop. Not investigated yet. See docs/ROADMAP.md section 2. Attach a run-native.sh log if you hit it.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T10:53:39Z.
Triage note: two recent tester reports passed the 53 s / 1,400-frame mark with no Metal GPU timeout:
Keeping #2 open until we confirm whether the timeout still reproduces on current
main(or only on specific scenes/hardware). If anyone hitskIOGPUCommandBufferCallbackErrorTimeouton latestmain, please attach the log here.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T13:28:39Z.
Update: #60 has merged to
main, keeping all unsatisfied queueWaits on the CPU pump until observed backend completion (avoiding the ~5 sMTLSharedEventwait timeout) and preservingPresentordering behind held work. Keeping #2 open until confirmed on a live run.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T15:56:50Z.
Status: #60 is merged (no more unsignalled waits). Still open until a live run past ~1,400 frames confirms no timeout; the later timeouts are tracked in #79. Needed: a run on current main.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by derz92 on 2026-11-26T16:23:21Z.
Live runs on current
main(3fd73fd, which includes #60): no Metal command buffer timeout on this Mac.Setup: Apple M5 Max, 36 GB, macOS 26.5, windowed,
--console series-x,VICTORY_GUESS_GRAPHICS=1, the defaultrun-native.shEnter presses. Two local changes that don't touch the GPU path: one zeroes the CoreAudio buffers, and one moves the window to another screen. Caveat: another GPU-heavy process (a second game) was running on the same GPU during both runs, so frame rates are lower than they would be alone.command buffer failed/kIOGPUCommandBufferCallbackErrorTimeoutBoth runs went well past the old stop at about 53 s and 1,400 frames. In run 1
native draws so farends withrecorded=53856 encoded=53856. Run 2 ended the way #15 describes: the watchdog's write to 0 atimage+0x23cf683, then the unhandled fault atimage+0x55e56f8, about 25 s into the story000 load.From this Mac, the 53 s timeout no longer reproduces on
main. I'll keep watching for it in longer runs and will post here if it comes back.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:13:38Z.
Thanks @derz92. #110 shows the same on two more Macs: on current main nothing stops at ~53 s anymore. The later command-buffer failures are tracked in #79 (memory) and #80 (lost fence signals).