diff options
Diffstat (limited to 'main/app.cpp')
-rw-r--r-- | main/app.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/app.cpp b/main/app.cpp index 33b89231..e2d51455 100644 --- a/main/app.cpp +++ b/main/app.cpp @@ -19,12 +19,15 @@ app::app(const Arguments& arguments): .setFlags(GLConfiguration::Flag::GpuValidation) } { + if (!setSwapInterval(-1)) + (void)setSwapInterval(1); set_fp_mask(); reset_camera_offset(); update_window_scale(windowSize()); setMinimalLoopPeriod(5); _imgui = ImGuiIntegration::Context(Vector2{windowSize()}, windowSize(), framebufferSize()); setup_menu(); + SDL_MaximizeWindow(window()); timeline.start(); } void app::viewportEvent(Platform::Sdl2Application::ViewportEvent& event) |