Repository navigation
Conversation
…re, for every game. Super Smash Bros. Ultimate 13.0.5 presents its window texture in its first frames before drawing into it; the texture was made on that first resolution in the present path and joined the residency set (res_add), which only a submission commits, so the display command buffer sampled it outside the committed set: kIOGPUCommandBufferCallbackErrorPageFault at the first presents, after which macOS ignored every command buffer of the process (194 command buffer and 174 upload errors in the user's run) and the window stayed pink. Headless runs never present, which is why they looked right. res_commit is free when nothing changed. Smash windowed now: the opening movie, the DLC first-boot screens, the title, the main menu and a first match render right, no GPU error. Breath of the Wild windowed with only this change on the sync-lag branch its libraries match: its title, 60 fps, no GPU error. docs/agents/04-graphics.md says so
This was referenced Oct 23, 2026
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This came up while bringing up Super Smash Bros. Ultimate (#65). It is a general fix for every game.
Problem
Smash presents its window texture in its first frames, before anything has drawn into it. The present path creates the host texture on that first resolution and adds it to the residency set (
res_add), but only a submission commits that set. The display command buffer therefore sampled memory the GPU didn't have mapped yet:kIOGPUCommandBufferCallbackErrorPageFaultat the first presents.kIOGPUCommandBufferCallbackErrorSubmissionsIgnored).Headless runs never present to a window, which is why the problem only showed in windowed runs.
Change
The present commits the residency set right after resolving the presented texture (
nvn_mtl.m).res_commitcosts nothing when nothing changed.docs/agents/04-graphics.mdhas the case.Checked
dm/tools/testspass.