From 1956c0ed4ac8fe0ab38d4706441ee0f728dfd4a7 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Fri, 24 Feb 2012 23:33:25 +0000 Subject: [PATCH] disable vsync on windows --- java/libraries/opengl/src/processing/opengl/PGL.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/libraries/opengl/src/processing/opengl/PGL.java b/java/libraries/opengl/src/processing/opengl/PGL.java index 43fbff4fe..7ea8d0c06 100644 --- a/java/libraries/opengl/src/processing/opengl/PGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGL.java @@ -281,6 +281,9 @@ public class PGL { public void updatePrimary() { gl = context.getGL(); gl2 = gl.getGL2(); + + // disables vsync (framerate cap) on windows + gl.setSwapInterval(0); } public void updateOffscreen(PGL primary) {