From 5b4b0b2be5b9d4a3be7cb6d6b6f09574d2127f53 Mon Sep 17 00:00:00 2001 From: im-tem Date: Fri, 15 Aug 2025 12:41:03 +0300 Subject: [PATCH] enable vsync to prevent excess resource usage --- src/state.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state.cpp b/src/state.cpp index b33d0ed..af70ee2 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -96,6 +96,8 @@ void init(State* self) glDisable(GL_DEPTH_TEST); glDisable(GL_LINE_SMOOTH); + SDL_GL_SetSwapInterval(1); + resources_init(&self->resources); dialog_init(&self->dialog, self->window); clipboard_init(&self->clipboard, &self->anm2);