diff options
-rw-r--r-- | .classpath | 1 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.classpath b/.classpath index 3de14da74..a37a33820 100644 --- a/.classpath +++ b/.classpath @@ -31,6 +31,5 @@ <classpathentry combineaccessrules="false" kind="src" path="/gluegen"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Ant"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/SWT"/> - <classpathentry kind="lib" path="make/lib/swt/gtk-linux-x86_64/swt-debug.jar"/> <classpathentry kind="output" path="build/eclipse-classes"/> </classpath> diff --git a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java index 284e2bcc9..fc364b67a 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java +++ b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java @@ -173,6 +173,9 @@ public class FPSAnimator extends AnimatorBase { timer = null; } animThread = null; + try { + Thread.sleep(20); // ~ 1/60 hz wait, since we can't ctrl stopped threads + } catch (InterruptedException e) { } } finally { stateSync.unlock(); } @@ -191,6 +194,9 @@ public class FPSAnimator extends AnimatorBase { task = null; } animThread = null; + try { + Thread.sleep(20); // ~ 1/60 hz wait, since we can't ctrl stopped threads + } catch (InterruptedException e) { } } finally { stateSync.unlock(); } |