Skip to content

Commit

Permalink
default vsync to false on Windows to work around glfw error #329
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Feb 4, 2025
1 parent 5b3a2e4 commit d76bf65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ bool allowHeadlessBackends = false;
bool errorsThrowExceptions = false;
bool debugDrawPickBuffer = false;
int maxFPS = 60;

#ifdef _WIN32
// set the default vsync to false on windows, to workaround an glfw errors from an alleged driver bug
bool enableVSync = false;
#else
bool enableVSync = true;
#endif

bool usePrefsFile = false;
bool initializeWithDefaultStructures = true;
bool alwaysRedraw = false;
Expand Down

0 comments on commit d76bf65

Please sign in to comment.