[nostalgia/core/sdl] Add tracepoint about vsync/adaptive vsync setting
This commit is contained in:
parent
bfca2193bc
commit
736b9342ea
@ -30,6 +30,7 @@ ox::Error run(Context *ctx) {
|
|||||||
auto id = ctx->windowerData<SdlImplData>();
|
auto id = ctx->windowerData<SdlImplData>();
|
||||||
// try adaptive vsync
|
// try adaptive vsync
|
||||||
if (SDL_GL_SetSwapInterval(-1) < 0) {
|
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
|
SDL_GL_SetSwapInterval(1); // fallback on normal vsync
|
||||||
}
|
}
|
||||||
for (auto running = true; running;) {
|
for (auto running = true; running;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user