control: skip no-op display updates - #230
Merged
Merged
Conversation
Makes both flavors of Control enable the `draw_fb_is_dynamic` optimization, which lets us skip SDL screen update when the the framebuffer content has not changed. Improve BeOS PR1 booting on the 7300 from 15.8-46s to 13.9-14.2. The variability appears to be due to time spent in `SDL_RenderPresent`, per https://developer.apple.com/documentation/metal/onscreen-presentation this may block on macOS (with the Metal backend) until the next display refresh, and we were generating a lot more frames to present before. Also improves smoothness of the BeOS GL Teapot demo (the displayed framerate does not change since the timer is driven by instruction cycles, which don't change).
mihaip
added a commit
to mihaip/infinite-mac
that referenced
this pull request
Oct 1, 2026
Includes dingusdev/dingusppc#230 which reduces the overhead of screen updates on the 7300. It does not help as much for the Emscripten port because we don't block on screen updates. For #237 and #219
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.
Makes both flavors of Control enable the
draw_fb_is_dynamicoptimization, which lets us skip SDL screen update when the the framebuffer content has not changed.Improve BeOS PR1 booting on the 7300 from 15.8-46s to 13.9-14.2. The variability appears to be due to time spent in
SDL_RenderPresent, per https://developer.apple.com/documentation/metal/onscreen-presentation this may block on macOS (with the Metal backend) until the next display refresh, and we were generating a lot more frames to present before.Also improves smoothness of the BeOS GL Teapot demo (the displayed framerate does not change since the timer is driven by instruction cycles, which don't change).
BeOS.PR1.GL.Teapot.before.mp4
BeOS.PR1.GL.Teapot.after.-.small.mp4
For #35