Skip to content

Commit

Permalink
Forcefully disable vsync via a hacky environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Speak2Erase committed Jul 6, 2024
1 parent 78ad2ca commit b8ce3dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions steamshim/steamshim_parent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ static int closeProcess(ProcessType *pid) {
} // closeProcess

int main(int argc, char **argv) {
// set the __GL_SYNC_TO_VBLANK environment variable to 0 to disable vsync (very hacky)
setenv("__GL_SYNC_TO_VBLANK", "0", 1);

signal(SIGPIPE, SIG_IGN);
GArgc = argc;
GArgv = argv;
Expand Down

0 comments on commit b8ce3dc

Please sign in to comment.