|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
FPSCounter feature. More...
Public Member Functions | |
| void | setUpdateFPSFrames (int frames, PrintStream out) |
| void | resetFPSCounter () |
| Reset all performance counter (startTime, currentTime, frame number) More... | |
| int | getUpdateFPSFrames () |
| long | getFPSStartTime () |
Returns the time of the first display call in milliseconds after enabling this feature via setUpdateFPSFrames(int, PrintStream). More... | |
| long | getLastFPSUpdateTime () |
Returns the time of the last update interval in milliseconds, if this feature is enabled via setUpdateFPSFrames(int, PrintStream). More... | |
| long | getLastFPSPeriod () |
| float | getLastFPS () |
| int | getTotalFPSFrames () |
| long | getTotalFPSDuration () |
| float | getTotalFPS () |
Static Public Attributes | |
| static final int | DEFAULT_FRAMES_PER_INTERVAL = 5*60 |
FPSCounter feature.
An implementation initially has the FPSCounter feature disabled.
Use setUpdateFPSFrames(int, PrintStream) to enable and disable the FPSCounter feature.
Definition at line 37 of file FPSCounter.java.
| long com.jogamp.opengl.FPSCounter.getFPSStartTime | ( | ) |
Returns the time of the first display call in milliseconds after enabling this feature via setUpdateFPSFrames(int, PrintStream).
This value is reset via resetFPSCounter().
Implemented in com.jogamp.opengl.util.AnimatorBase.
| float com.jogamp.opengl.FPSCounter.getLastFPS | ( | ) |
getUpdateFPSFrames() / getLastFPSPeriod()Implemented in com.jogamp.opengl.util.AnimatorBase.
| long com.jogamp.opengl.FPSCounter.getLastFPSPeriod | ( | ) |
Implemented in com.jogamp.opengl.util.AnimatorBase.
| long com.jogamp.opengl.FPSCounter.getLastFPSUpdateTime | ( | ) |
Returns the time of the last update interval in milliseconds, if this feature is enabled via setUpdateFPSFrames(int, PrintStream).
This value is reset via resetFPSCounter().
Implemented in com.jogamp.opengl.util.AnimatorBase.
| float com.jogamp.opengl.FPSCounter.getTotalFPS | ( | ) |
getTotalFPSFrames() / getTotalFPSDuration()Implemented in com.jogamp.opengl.util.AnimatorBase.
| long com.jogamp.opengl.FPSCounter.getTotalFPSDuration | ( | ) |
getLastFPSUpdateTime() - getFPSStartTime()Implemented in com.jogamp.opengl.util.AnimatorBase.
| int com.jogamp.opengl.FPSCounter.getTotalFPSFrames | ( | ) |
getFPSStartTime() up to getLastFPSUpdateTime()Implemented in com.jogamp.opengl.util.AnimatorBase.
| int com.jogamp.opengl.FPSCounter.getUpdateFPSFrames | ( | ) |
Implemented in com.jogamp.opengl.util.AnimatorBase.
| void com.jogamp.opengl.FPSCounter.resetFPSCounter | ( | ) |
Reset all performance counter (startTime, currentTime, frame number)
Implemented in com.jogamp.opengl.util.AnimatorBase.
| void com.jogamp.opengl.FPSCounter.setUpdateFPSFrames | ( | int | frames, |
| PrintStream | out | ||
| ) |
| frames | Update interval in frames. At every rendered frames interval the currentTime and fps values are updated. If the frames interval is <= 0, no update will be issued, ie the FPSCounter feature is turned off. You may choose DEFAULT_FRAMES_PER_INTERVAL. |
| out | optional print stream where the fps values gets printed if not null at every frames interval |
Implemented in com.jogamp.opengl.util.AnimatorBase.
|
static |
Definition at line 38 of file FPSCounter.java.