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:
Max Brunsfeld
2024-02-01 15:39:41 -08:00
committed by GitHub
co-authored by Antonio Scandurra Nathan Sobo
parent 21f4da6bf2
commit 020c38a891
@@ -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();
}