diff --git a/src/Config.template.h b/src/Config.template.h index fd2f34e5b..c8bcbb9fd 100644 --- a/src/Config.template.h +++ b/src/Config.template.h @@ -17,7 +17,6 @@ constexpr bool IGNORE_UPDATES = @IGNORE_UPDATES@; constexpr bool ENFORCE_HTTPS = @ENFORCE_HTTPS@; constexpr bool SECURE_CIPHERS_ONLY = @SECURE_CIPHERS_ONLY@; constexpr bool FFTW_PLAN_MEASURE = @FFTW_PLAN_MEASURE@; -constexpr bool DEFAULT_VSYNC = @DEFAULT_VSYNC@; constexpr bool ALLOW_QUIT = @ALLOW_QUIT@; constexpr bool ALLOW_WINDOW_FRAME_OPS = @ALLOW_WINDOW_FRAME_OPS@; constexpr bool ALLOW_DATA_FOLDER = @ALLOW_DATA_FOLDER@; diff --git a/src/gui/interface/Engine.cpp b/src/gui/interface/Engine.cpp index 7433a65e8..fd3a212b5 100644 --- a/src/gui/interface/Engine.cpp +++ b/src/gui/interface/Engine.cpp @@ -27,15 +27,7 @@ Engine::Engine(): mousexp_(0), mouseyp_(0) { - SetFpsLimit(fpsLimit); // populate dt with whatever that makes any sort of sense - if constexpr (DEFAULT_VSYNC) - { - SetFpsLimit(FpsLimitVsync{}); - } - else - { - SetFpsLimit(FpsLimitExplicit{ 60.0f }); - } + SetFpsLimit(FpsLimitExplicit{ 60.0f }); } Engine::~Engine() diff --git a/src/meson.build b/src/meson.build index 737c86c74..9c7d8b8a6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -61,12 +61,10 @@ if host_platform == 'emscripten' powder_files += files( 'PowderToySDLEmscripten.cpp', ) - conf_data.set('DEFAULT_VSYNC', 'true') else powder_files += files( 'PowderToySDLCommon.cpp', ) - conf_data.set('DEFAULT_VSYNC', 'false') endif if is_x86 powder_files += files('X86KillDenormals.cpp')