From 829eb8cac4c0b03aa3edea5c3fe59ecdf87ce6fc Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Thu, 15 Oct 2015 23:29:21 +0200 Subject: [PATCH] Turn off fixed rate scheduling in OpenGL After some testing, it appears that fixed rate scheduling tries to catch up later when it runs slower than desired, creating weird speedups when the load decreases. Turning it back off. --- core/src/processing/opengl/PSurfaceJOGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index 99067b1c4..ba6429998 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -407,7 +407,7 @@ public class PSurfaceJOGL implements PSurface { protected void initAnimator() { - animator = new FPSAnimator(window, 60, true); + animator = new FPSAnimator(window, 60); drawException = null; animator.setUncaughtExceptionHandler(new GLAnimatorControl.UncaughtExceptionHandler() { @Override