From 263b4f73890a8f27467aa5f3043698fc04359f77 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Thu, 6 Jul 2023 22:41:43 -0400 Subject: [PATCH] Enabled V sync and added editor update to scene systems --- Nuake/src/Scene/Systems/System.h | 2 +- Nuake/src/Window.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Nuake/src/Scene/Systems/System.h b/Nuake/src/Scene/Systems/System.h index f167c702..382fa84d 100644 --- a/Nuake/src/Scene/Systems/System.h +++ b/Nuake/src/Scene/Systems/System.h @@ -15,7 +15,7 @@ namespace Nuake virtual void Update(Timestep ts) = 0; virtual void FixedUpdate(Timestep ts) = 0; - + virtual void EditorUpdate() {} virtual void Exit() = 0; }; } diff --git a/Nuake/src/Window.cpp b/Nuake/src/Window.cpp index 4fb9ad07..dfda0ab2 100644 --- a/Nuake/src/Window.cpp +++ b/Nuake/src/Window.cpp @@ -128,7 +128,9 @@ namespace Nuake { stbi_image_free(images[0].pixels); glfwMakeContextCurrent(m_Window); - glfwSwapInterval(0); + + glfwSwapInterval(1); + Logger::Log((char*)glGetString(GL_VERSION)); if (glewInit() != GLEW_OK)