From 63abf3d37402f47b25e256f7ab7280d5cda7148b Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 15 Jan 2025 00:31:17 +0300 Subject: [PATCH] disable vsync, make us rule over frames fully --- src/twn_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twn_loop.c b/src/twn_loop.c index a6bc47f..b3e2cfc 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -507,8 +507,8 @@ static bool initialize(void) { goto fail; } - if (SDL_GL_SetSwapInterval(-1)) - SDL_GL_SetSwapInterval(1); + /* TODO: figure out what we ultimately prefer */ + SDL_GL_SetSwapInterval(0); if (!render_init()) goto fail;