Blender Git Loki
Git Commits -> Revision 99de160
Revision 99de160 by Tomoaki Kawada (master) June 2, 2019, 10:54 (GMT) |
macOS: fix viewport lagging, by using CAMetalLayer instead of NSOpenGLView On GPUs that support it, we now present OpenGL contents via CAMetalLayer. This fixes frame skipping issues found in T60043. If the system does not have a Metal capable GPU, NSOpenGLView will continue to be used. Patch by Tomoaki Kawada, with some changes by Brecht Van Lommel. Differential Revision: https://developer.blender.org/D4619 |
Commit Details:
Full Hash: 99de160340c7ae08ac5abed12a541017e4846d87
Parent Commit: 1418eee
Committed By: Brecht Van Lommel
Lines Changed: +430, -35
7 Modified Paths:
/build_files/cmake/platform/platform_apple.cmake (+1, -1) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.h (+32, -3) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.mm (+316, -11) (Diff)
/intern/ghost/intern/GHOST_SystemCocoa.mm (+1, -1) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.h (+7, -3) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.mm (+65, -13) (Diff)
/intern/ghost/intern/GHOST_WindowViewCocoa.h (+8, -3) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.h (+32, -3) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.mm (+316, -11) (Diff)
/intern/ghost/intern/GHOST_SystemCocoa.mm (+1, -1) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.h (+7, -3) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.mm (+65, -13) (Diff)
/intern/ghost/intern/GHOST_WindowViewCocoa.h (+8, -3) (Diff)