Add ability to create a separate render thread locked to the display refresh rate #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "foxnne-frames"
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?
PR authored by @foxnne and sent by me as part of repo migration to code.hexops.com
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.