From 3ab4e273d5dbaad20a3666442a8e85d834737877 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 19 Aug 2013 16:22:48 -0400 Subject: [PATCH] removed the glFinish hack to handle #1714, as it seems that JOGL 2.0.2 solved the issue. --- core/src/processing/opengl/PGL.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 21893cb93..6fcc12f10 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -1120,19 +1120,6 @@ public class PGL { backTex = temp; } } - - // call (gl)finish() only if the rendering of each frame is taking too long, - // to make sure that commands are not accumulating in the GL command queue. -// fcount += 1; -// int m = pg.parent.millis(); -// if (m - lastm > 1000 * fint) { -// currentFps = (float)(fcount) / fint; -// fcount = 0; -// lastm = m; -// } -// if (currentFps < targetFps/2) { -// finish(); -// } }