add vsync

This commit is contained in:
2025-08-01 13:38:00 +02:00
parent 51dc910359
commit 31bb0198fc

View File

@@ -81,6 +81,9 @@ Display::Display(int a_Width, int a_Height, const std::string& a_Title) :
// WindowResizeEvent(WindowWidth, WindowHeight); // WindowResizeEvent(WindowWidth, WindowHeight);
// vsync
SDL_GL_SetSwapInterval(1);
// Setup Dear ImGui context // Setup Dear ImGui context
IMGUI_CHECKVERSION(); IMGUI_CHECKVERSION();
ImGui::CreateContext(); ImGui::CreateContext();