This is a readme file for glsync hack, which enforces glXSwapBuffers to synchronize GPU with CPU (e.g. empty the command buffer) This project is a shameless fork of elfhacks - an excelent work of Pyry Haulos - all credit goes to him.
mkdir build
cd build
cmake ..
make
This will (hopefully) produce libglsync.so and libglsync32.so in build/sync/ directory, which should be LD_PRELOADed with the application that needs to be amended.
Usually it should suffice to do:
LD_PRELOAD=PATH_TO/libglsync.so executable
or
LD_PRELOAD=PATH_TO/libglsync32.so 32bit_executable
for 32bit executables.
Left4Dead2 does not work with this lib ("Could not load library matchmaking").