Git Product home page Git Product logo

glsync's Introduction

GLSync

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.

Building

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.

Running

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.

Known issues

Left4Dead2 does not work with this lib ("Could not load library matchmaking").

glsync's People

Contributors

phaulos avatar volca02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

glsync's Issues

Issues while compiling LD_PRELOAD hack

Hi, I was trying to compile the hack but an error is occurring when I use the make command:

[ 25%] Built target elfhacks
[ 50%] Building C object src/CMakeFiles/elfhacks32.dir/elfhacks.o
In file included from /usr/include/stdlib.h:25:0,
from /home/lord-avallon/Downloads/glsync-master/src/elfhacks.c:11:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[2]: ** [src/CMakeFiles/elfhacks32.dir/elfhacks.o] Error 1
make[1]: ** [src/CMakeFiles/elfhacks32.dir/all] Error 2
make: ** [all] Error 2

The files libglsync.so and libglsync32.so are not produced in build/sync/ directory.

If you can help me with this I would appreciate, thanks for your time!

cannot find -lgcc

Hi i get the following issue when i try to make:

~/glsync-master/build> make
[ 25%] Built target elfhacks
Linking C shared library libelfhacks32.so
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.8/libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lgcc
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.8/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
make[2]: *** [src/libelfhacks32.so.0.4.1] Fehler 1
make[1]: *** [src/CMakeFiles/elfhacks32.dir/all] Error 2
make: *** [all] Error 2

Do you know what's wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.