mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 23:09:42 +00:00
Avoid excessive blocking of main thread when rendering in direct mode (#7253)
Release Notes: - Fixed a bug that caused inconsistent frame rate when scrolling on certain hardware. Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
21f4da6bf2
commit
020c38a891
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ impl MetalRenderer {
|
|||
command_buffer.commit();
|
||||
self.sprite_atlas.clear_textures(AtlasTextureKind::Path);
|
||||
|
||||
command_buffer.wait_until_completed();
|
||||
command_buffer.wait_until_scheduled();
|
||||
drawable.present();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue