Fix T46993: UI lag in fullscreen mode on OS X / Intel graphics.
If anyone finds OS X UI drawing glitches with different graphics cards please report them and I'll add an exception specifically for Intel, but in theory this should work fine for all graphics cards.
This commit is contained in:
parent
2643b57f97
commit
cd6c6ee1a5
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #47144, Entry point not found GetFinalPathNameByHandlew in Kernel32 Referenced by issue #47129, new Bmesh boolean is deleting some of edges data, (Creases and Bweigh) Referenced by issue #46993, Slowness when using interface in fullscreen mode
|
@ -177,10 +177,6 @@ static void makeAttribList(
|
|||
// Pixel Format Attributes for the windowed NSOpenGLContext
|
||||
attribs.push_back(NSOpenGLPFADoubleBuffer);
|
||||
|
||||
// Guarantees the back buffer contents to be valid after a call to NSOpenGLContext object's flushBuffer
|
||||
// needed for 'Draw Overlap' drawing method
|
||||
attribs.push_back(NSOpenGLPFABackingStore);
|
||||
|
||||
// Force software OpenGL, for debugging
|
||||
/* XXX jwilkins: fixed this to work on Intel macs? useful feature for Windows and Linux too?
|
||||
* Maybe a command line flag is better... */
|
||||
|
|
|
@ -864,15 +864,6 @@ static int wm_automatic_draw_method(wmWindow *win)
|
|||
/* ATI opensource driver is known to be very slow at this */
|
||||
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_UNIX, GPU_DRIVER_OPENSOURCE))
|
||||
return USER_DRAW_OVERLAP;
|
||||
/* also Intel drivers are slow */
|
||||
#if 0 /* 2.64 BCon3 period, let's try if intel now works... */
|
||||
else if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_UNIX, GPU_DRIVER_ANY))
|
||||
return USER_DRAW_OVERLAP;
|
||||
else if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_ANY))
|
||||
return USER_DRAW_OVERLAP_FLIP;
|
||||
else if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_MAC, GPU_DRIVER_ANY))
|
||||
return USER_DRAW_OVERLAP_FLIP;
|
||||
#endif
|
||||
/* Windows software driver darkens color on each redraw */
|
||||
else if (GPU_type_matches(GPU_DEVICE_SOFTWARE, GPU_OS_WIN, GPU_DRIVER_SOFTWARE))
|
||||
return USER_DRAW_OVERLAP_FLIP;
|
||||
|
|
Loading…
Reference in New Issue