Class PerformanceMonitor
java.lang.Object
nl.colorize.multimedialib.scene.effect.PerformanceMonitor
- All Implemented Interfaces:
Scene
Depicts various performance statistics, both in terms of overall performance
and on a frame-by-frame basis. When the widget is active, it will
automatically capture and visualize every frame update. If the widget is
marked as inactive, it will disable this logic, ironically in order to
conserve performance.
This widget is included as part of the library so that it can be used as a debugging tool in applications.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
void
setActive
(boolean active) void
start
(SceneContext context) Initialization logic that should be performed when the scene is started.void
update
(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.colorize.multimedialib.scene.Scene
end, isCompleted, resize
-
Constructor Details
-
PerformanceMonitor
public PerformanceMonitor(boolean detailed)
-
-
Method Details
-
start
Description copied from interface:Scene
Initialization logic that should be performed when the scene is started. Note that this method is called *every* time the scene is started, not just the first time.This method is optional, the default implementation does nothing.
-
update
Description copied from interface:Scene
Called during every frame update for as long as the scene is active.deltaTime
indicates the elapsed time since the last frame, in seconds. -
setActive
public void setActive(boolean active) -
isActive
public boolean isActive()
-