From 7a8c83a1ee3215b1bc54d436cde05682e6188cf1 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 11 Mar 2018 14:41:30 +0100 Subject: Disable vsync. Not needed, and causing the rendering to be slower than necessary. --- BuddhaTest/src/BuddhaTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'BuddhaTest/src/BuddhaTest.cpp') diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp index b9629bf..37843c6 100644 --- a/BuddhaTest/src/BuddhaTest.cpp +++ b/BuddhaTest/src/BuddhaTest.cpp @@ -53,6 +53,9 @@ int main(int argc, char * argv[]) glfwMakeContextCurrent(window); gladLoadGLLoader((GLADloadproc)glfwGetProcAddress); + //disable vsync + glfwSwapInterval(0); + //we have a context. Let's check if input is sane. //calcualte buffer size, and make sure it's allowed by the driver. const unsigned int pixelCount{(settings.imageWidth * bufferHeight)*3}; //*3 -> RGB -- cgit v1.2.3