mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 16:00:05 +01:00
Disable deferred updates in xp_init to fix performance problems
-- thanks to Eric Gouriou for pointing out the issue
This commit is contained in:
parent
a36983602f
commit
1a1be462ed
1 changed files with 5 additions and 2 deletions
|
|
@ -46,10 +46,13 @@
|
|||
# include "damage.h"
|
||||
#endif
|
||||
|
||||
/* 10.4's deferred update makes X slower.. have to live with the tearing
|
||||
for now.. */
|
||||
#define XP_NO_DEFERRED_UPDATES 8
|
||||
|
||||
// Name of GLX bundle for native OpenGL
|
||||
static const char *xprOpenGLBundle = "glxCGL.bundle";
|
||||
|
||||
|
||||
/*
|
||||
* eventHandler
|
||||
* Callback handler for Xplugin events.
|
||||
|
|
@ -230,7 +233,7 @@ xprDisplayInit(void)
|
|||
else
|
||||
darwinScreensFound = 1;
|
||||
|
||||
if (xp_init(XP_IN_BACKGROUND) != Success)
|
||||
if (xp_init(XP_IN_BACKGROUND | XP_NO_DEFERRED_UPDATES) != Success)
|
||||
{
|
||||
FatalError("Could not initialize the Xplugin library.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue