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
Replace CADisplayLink
with CVDisplayLink
#7583
Conversation
Co-Authored-By: Thorsten <thorsten@zed.dev>
Co-Authored-By: Nathan <nathan@zed.dev> Co-Authored-By: Max <max@zed.dev>
Is this a related issue? When hovering over something, drops the FPS to ~10. Screen.Recording.2024-02-08.at.19.39.33.mov |
Release Notes: - Fixed a bug that caused Zed to render at 60fps even on ProMotion displays. - Fixed a bug that could saturate the main thread event loop in certain circumstances. --------- Co-authored-by: Thorsten <thorsten@zed.dev> Co-authored-by: Nathan <nathan@zed.dev> Co-authored-by: Max <max@zed.dev>
Release Notes: - Fixed a bug that caused Zed to render at 60fps even on ProMotion displays. - Fixed a bug that could saturate the main thread event loop in certain circumstances. --------- Co-authored-by: Thorsten <thorsten@zed.dev> Co-authored-by: Nathan <nathan@zed.dev> Co-authored-by: Max <max@zed.dev>
@RemcoSmitsDev it could be! Try the latest release, we put the fix in cc @bennetbo 😄 we did it! |
I cannot reproduce it with the stable version but still with the preview version. I'm not sure if the preview version contains the fix. |
It actually makes sense that the frame rate drops when no input occurs, we're not producing any new frames because nothing changed on screen and we wanna save battery. |
Oh, yes, that. I misunderstood. @RemcoSmitsDev take a look at this video: you can see that if there is something to do, things are rendered, blue line moves. But at the end, I'm just not doing anything, and rendering stops. screenshot-2024-02-09-10.55.13.mp4If I do that on a 60hz display it looks exactly like in your video. |
Okay, makes sense, thanks! But I'm not sure if it's clear on my video, but when I hover over an identifier the popup keeps open until I click somewhere or hover over a new identifier. This happens only on the preview build. Screen.Recording.2024-02-10.at.11.43.06.mov |
That seems like a regression unrelated to these changes, as this pull request was hotfixed to stable. I know we recently changed our handling of mouse events on the editor to support clicking on links, maybe @ConradIrwin knows more about this? Either way, would you mind opening a new issue and tagging it as “regression”? Thanks! |
Sure, made the issue: #7670 |
Release Notes: