diff options
author | Sven Gothel <[email protected]> | 2012-11-25 13:50:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-11-25 13:50:40 +0100 |
commit | cc5fb8d9f807089c5d119f3b56eed7d018a1dba2 (patch) | |
tree | b6142975318c3e20d3c219c2cede158fd310d017 /src/jogl | |
parent | f24844c5e6c57a43df79224f2d3a89e9720726f7 (diff) |
FPSAnimator: Add note on deamon-thread and JVM shutdown behavior.
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/Animator.java | 3 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java | 13 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/Animator.java b/src/jogl/classes/com/jogamp/opengl/util/Animator.java index 20ba27c16..ddbc66fa3 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/Animator.java +++ b/src/jogl/classes/com/jogamp/opengl/util/Animator.java @@ -56,8 +56,7 @@ import javax.media.opengl.GLAutoDrawable; * so it is able to keep an application from terminating.<br> * Call {@link #stop() } to terminate the animation and it's execution thread. * </p> -*/ - + */ public class Animator extends AnimatorBase { /** timeout in milliseconds, 15 frames @ 60Hz = 240ms, limiting {@link #finishLifecycleAction(Condition)} */ private static final long TO_WAIT_FOR_FINISH_LIFECYCLE_ACTION = 15*16; diff --git a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java index 73cc3a5f2..251792110 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java +++ b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java @@ -42,9 +42,16 @@ package com.jogamp.opengl.util; import java.util.*; import javax.media.opengl.*; -/** An Animator subclass which attempts to achieve a target -frames-per-second rate to avoid using all CPU time. The target FPS -is only an estimate and is not guaranteed. */ +/** + * An Animator subclass which attempts to achieve a target + * frames-per-second rate to avoid using all CPU time. The target FPS + * is only an estimate and is not guaranteed. + * <p> + * The Animator execution thread does not run as a daemon thread, + * so it is able to keep an application from terminating.<br> + * Call {@link #stop() } to terminate the animation and it's execution thread. + * </p> + */ public class FPSAnimator extends AnimatorBase { private Timer timer = null; private TimerTask task = null; |