From 736b9342ea2d0e694788a814d7306242c6c1b7ae Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 18 Mar 2021 19:10:20 -0500 Subject: [PATCH] [nostalgia/core/sdl] Add tracepoint about vsync/adaptive vsync setting --- src/nostalgia/core/sdl/core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nostalgia/core/sdl/core.cpp b/src/nostalgia/core/sdl/core.cpp index 42273cba..9746875d 100644 --- a/src/nostalgia/core/sdl/core.cpp +++ b/src/nostalgia/core/sdl/core.cpp @@ -30,6 +30,7 @@ ox::Error run(Context *ctx) { auto id = ctx->windowerData(); // try adaptive vsync if (SDL_GL_SetSwapInterval(-1) < 0) { + oxTrace("nostalgia::core::sdl", "Could not enable adaptive vsync, falling back on vsync"); SDL_GL_SetSwapInterval(1); // fallback on normal vsync } for (auto running = true; running;) {