diff --git a/src/tiledapp/main.cpp b/src/tiledapp/main.cpp index 8ec5c5d2f9..198f029114 100644 --- a/src/tiledapp/main.cpp +++ b/src/tiledapp/main.cpp @@ -22,16 +22,15 @@ #include "commandlineparser.h" #include "exporthelper.h" -#include "languagemanager.h" #include "logginginterface.h" #include "mainwindow.h" -#include "mapdocument.h" #include "mapformat.h" -#include "mapreader.h" #include "pluginmanager.h" #include "preferences.h" #include "scriptmanager.h" +#ifdef TILED_SENTRY #include "sentryhelper.h" +#endif #include "tiledapplication.h" #include "tileset.h" #include "tmxmapformat.h" @@ -40,6 +39,7 @@ #include #include #include +#include #include #include "qtcompat_p.h" @@ -571,6 +571,11 @@ int main(int argc, char *argv[]) Session::initialize(); + // Disable vsync to make hardware accelerated mode more responsive + QSurfaceFormat format; + format.setSwapInterval(0); + QSurfaceFormat::setDefaultFormat(format); + MainWindow w; w.show();