Files
oak-gpui/crates
Antonio ScandurraandNathan Sobo 15edc46827 Maintain smooth frame rates when ProMotion and direct mode are enabled (#7305)
This is achieved by starting a `CADisplayLink` that will invoke the
`on_request_frame` callback at the refresh interval of the display.

We only actually draw frames when the window was dirty, or for 2 extra
seconds after the last input event to ensure ProMotion doesn't downclock
the refresh rate when the user is actively interacting with the window.

Release Notes:

- Improved performance when using a ProMotion display with fast key
repeat rates.

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
2024-02-02 16:42:46 -07:00
..
2024-02-02 09:52:30 -07:00
2024-02-01 22:22:02 -07:00
2024-01-29 23:47:20 -05:00
2024-01-29 23:47:20 -05:00
2024-02-01 22:22:02 -07:00
2024-02-02 12:21:45 -05:00
2024-01-31 15:46:24 -07:00
2024-01-29 23:47:20 -05:00
2024-01-31 15:46:24 -07:00
2024-01-29 23:47:20 -05:00
2024-02-02 09:52:30 -07:00