mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 01:58:25 +00:00
d591e2fd36
The compiled xlib-shim.so can be used to intercept and prevent SDL from calling XSync, which causes latency issues on some video hardware. To use specify the full path to the file in the LD_PRELOAD environment variable, like so: LD_PRELOAD=/full/path/xlib-shim.so ./looking-glass
15 lines
242 B
C
15 lines
242 B
C
#include <X11/Xlib.h>
|
|
#include <stdbool.h>
|
|
#include "debug.h"
|
|
|
|
int XSync(Display * display, Bool discard)
|
|
{
|
|
static bool doneInfo = false;
|
|
if (!doneInfo)
|
|
{
|
|
DEBUG_INFO("XSync Override Enabled");
|
|
doneInfo = true;
|
|
}
|
|
|
|
return 0;
|
|
} |