From b8ce3dc9765f578dd7ce39fd3f96bcbace359d64 Mon Sep 17 00:00:00 2001 From: Melody Madeline Lyons Date: Sat, 6 Jul 2024 10:38:46 -0700 Subject: [PATCH] Forcefully disable vsync via a hacky environment variable --- steamshim/steamshim_parent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/steamshim/steamshim_parent.cpp b/steamshim/steamshim_parent.cpp index a00d9bfb46..85231b9d69 100644 --- a/steamshim/steamshim_parent.cpp +++ b/steamshim/steamshim_parent.cpp @@ -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;