add vsync
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user