-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Blade on MacOS via "macos-blade" feature #7669
Conversation
86ee063
to
50a078e
Compare
To test the livestreaming, we have scripts for running multiple Zed instances, but you need to have your enviroment setup a little bit. See the instructions here for more details :D. As for switching the transaction on and off, we added that so resizing works properly. See the details on our blog, particularly the addendum :) |
cdf09ed
to
f351a06
Compare
Dependencies are updated, code is rebased. Please take another look @mikayla-maki ! |
Depends on zed-industries/font-kit#2 and kvark/blade#77
This change enables Blade to be also used on MacOS. It will also make it easier to use it on Windows.
What works: most of the things. Zed loads as fast and appears equally responsive to the current renderer.
Things missing:
Requires a bit of plumbing on both Blade and Zed sides, but all fairly straightforward.Not sure where exactly to hook up the reaction on the window size change. Once we know where, the fix is one line.Update: I implemented resize support as well as "surface" rendering on the Blade path (which will be useful on Linux/Windows later on). I haven't tested the latter though - not sure how to get something streaming. Would appreciate some help! I don't think this should be a blocker to this PR, anyway.
The only little piece that's missing for the Blade on MacOS path to be full-featured is fine-tuning the CALayer configuration. Zed does a lot of careful logic in configuring the layer, such as switching the "present with transaction" on/off intermittently, which Blade path doesn't have yet.
Release Notes: