Kirill Bulatov
1ab0af2fa3
Revert the commit that broke Zed display capabilities ( #7326 )
2024-02-03 18:32:56 +02:00
Antonio Scandurra
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
Marshall Bowers
115f0672fb
gpui: Add support for observing window appearance ( #7294 )
...
This PR adds support to GPUI for observing when the appearance of a
window changes.
Based on the initial work done in
https://github.com/zed-industries/zed/pull/6881 .
Release Notes:
- N/A
2024-02-02 13:13:35 -05:00
Mikayla Maki
a54eaaecee
Add raw window handle implementations to GPUI ( #7101 )
...
This is in preparation for experiments with wgpu. This should have no
external effect.
Release Notes:
- N/A
2024-01-30 11:42:28 -08:00
Conrad Irwin
01424a62ea
Allow prompts to have detail, and use for good
...
Make channel panel errors louder
2024-01-24 23:15:37 -07:00
Conrad Irwin
4143d3a36e
Work on tests
2024-01-21 22:00:35 -07:00
Conrad Irwin
b06e2eb6af
Update handling of 'pending' keys
...
Before this change if you had a matching binding and a pending key,
the matching binding happened unconditionally.
Now we will wait a second before triggering that binding to give you
time to complete the action.
2024-01-21 20:12:01 -07:00
Mikayla
4184686e8d
Lock down test platform implementation
2024-01-20 15:03:36 -08:00
Antonio Scandurra
559461923f
Remove unused PlatformAtlas::clear
method
2024-01-18 10:40:15 +01:00
Mikayla
cae35d3334
Fix draw helper, add helper traits for selecting groupings of input events
2024-01-16 22:19:55 -08:00
Antonio Scandurra
50ccdf5c16
Reuse input handler when reusing a view tree
2024-01-11 13:22:59 +01:00
Antonio Scandurra
0c6d107740
Introduce on_request_frame
2024-01-09 18:21:10 +01:00
Piotr Osiewicz
53564fb269
Bring back zed.rs tests ( #3907 )
...
At present 3 tests still fail; 2 are related to keymap issues that (I
believe) @maxbrunsfeld is working on. The other one
(`test_open_paths_action`) I'll look into. edit: done
This PR also fixes workspace unregistration, as we've put the code to do
that behind `debug_assert`
(https://github.com/zed-industries/zed/pull/3907/files#diff-041673bbd1947a35d45945636c0055429dfc8b5985faf93f8a8a960c9ad31e28L649 ).
Release Notes:
- N/A
2024-01-08 12:29:54 +01:00
Conrad Irwin
06ab986599
fmt
2024-01-05 09:52:39 -07:00
Conrad Irwin
fff415e3e9
Improve deactivate simulation
2024-01-04 22:06:52 -07:00
Conrad Irwin
5c32dd5688
Better TestWindow support
2024-01-04 08:00:40 -07:00
Max Brunsfeld
f5ba22659b
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:59:39 -08:00