Updated ActiveRenderLoop documentation

This commit is contained in:
nathan 2016-09-02 11:53:22 +02:00
parent 98799c95de
commit e290bbba3c
1 changed files with 11 additions and 5 deletions

View File

@ -1,20 +1,26 @@
package dorkbox.util.swing;
import dorkbox.util.ActionHandlerLong;
import dorkbox.util.Property;
import javax.swing.JFrame;
import java.awt.Graphics;
import java.awt.Toolkit;
import java.awt.image.BufferStrategy;
import javax.swing.JFrame;
import dorkbox.util.ActionHandlerLong;
import dorkbox.util.Property;
/**
* Loop that controls the active rendering process
*/
public
class ActiveRenderLoop implements Runnable {
@Property
/** How many frames per second we want the Swing ActiveRender thread to run at */
/**
* How many frames per second we want the Swing ActiveRender thread to run at
*
* NOTE: The ActiveRenderLoop replaces the Swing EDT in order to enable smoother animations.
*/
public static int TARGET_FPS = 30;
@SuppressWarnings("WhileLoopReplaceableByForEach")