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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()voidsetActive(boolean active) voidstart(SceneContext context) Initialization logic that should be performed when the scene is started.voidupdate(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, waitMethods inherited from interface nl.colorize.multimedialib.scene.Scene
end, isCompleted
-
Constructor Details
-
PerformanceMonitor
public PerformanceMonitor(boolean detailed)
-
-
Method Details
-
start
Description copied from interface:SceneInitialization 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:SceneCalled during every frame update for as long as the scene is active.deltaTimeindicates the elapsed time since the last frame, in seconds. -
setActive
public void setActive(boolean active) -
isActive
public boolean isActive()
-