[Bf-blender-cvs] [cf18eb2de39] blender2.8: Fix T56996: MacOS: Lagging when rotating the view

Clément Foucault noreply at git.blender.org
Sun Dec 2 22:35:43 CET 2018


Commit: cf18eb2de39fd1e4c35e1cf545092834b34e000d
Author: Clément Foucault
Date:   Sun Dec 2 22:33:31 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBcf18eb2de39fd1e4c35e1cf545092834b34e000d

Fix T56996: MacOS: Lagging when rotating the view

It happens on multiple configuration so we cannot isolate the fix to only
some config.

Thanks Hugo Lamarche for helping finding the fix.

===================================================================

M	source/blender/draw/intern/draw_manager.c

===================================================================

diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 10b49950c0f..5faf7cf8f59 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1516,6 +1516,11 @@ void DRW_draw_render_loop_ex(
 
 	drw_engines_draw_scene();
 
+#ifdef __APPLE__
+	/* Fix 3D view being "laggy" on macos. (See T56996) */
+	glFlush();
+#endif
+
 	/* annotations - temporary drawing buffer (3d space) */
 	/* XXX: Or should we use a proper draw/overlay engine for this case? */
 	if (do_annotations) {



More information about the Bf-blender-cvs mailing list