Skip to content

Conversation

@foxnne
Copy link
Contributor

@foxnne foxnne commented Mar 14, 2025

This PR adds the ability to init our window's view with a CVDisplayLink that syncs a separate render thread with the display refresh rate. Window now has an on_tick, which when set, notifies the window creation method that the separate thread needs to be created and kicked off.

Currently most of the code that handles this uses the view's events directly by overriding defaults like viewDidMoveToWindow. I have started looking into how to move as much of this code to zig as possible, but currently none of it is used, and the objc code is responsible for the behavior.

This PR will need to be merged before the Mach companion PR is merged.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant