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:
authored and GitHub committed 2024-02-01 15:39:41 -08:00
1 parent 274d086064
commit 7da4609d15
1 file changed
+1 -1
@@ -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();
}