org.jrabbit.standard.game.loop
Class GameLoopProfiler

java.lang.Object
  extended by org.jrabbit.standard.profiler.ProfilerDisplay
      extended by org.jrabbit.standard.game.loop.GameLoopProfiler
All Implemented Interfaces:
Renderable, Updateable, GLTransform, Colored, GLGroupTransformed, Visible
Direct Known Subclasses:
GameLoopProfiler.Default

public abstract class GameLoopProfiler
extends ProfilerDisplay
implements Updateable

A GameLoopProfiler is an object that calculates and displays code profiling information. It extends ProfilerDisplay, but adds numerous controls to allow a GameLoop to measure particular operations much more effectively.

Author:
Chris Molini

Nested Class Summary
static class GameLoopProfiler.Default
          GameLoopProfiler.Default provides a default implementation.
 
Field Summary
 
Fields inherited from class org.jrabbit.standard.profiler.ProfilerDisplay
buffer, color, contents, renderer, transforms, visible
 
Constructor Summary
GameLoopProfiler()
           
 
Method Summary
abstract  void advanceFPS()
          Signals that the game has completed a cycle.
abstract  void beginLogic()
          Signals that the game is going to update its logic.
abstract  void beginRender()
          Signals that the game is beginning a render.
abstract  void beginSleep()
          Signals that the game is beginning its sleep phase, in order to keep a steady frame rate and conserve system resources.
abstract  void endLogic()
          Signals that the game has finished all purely logic-based calls.
abstract  void endRender()
          Signals that the game has finished rendering.
abstract  void endSleep()
          Signals that the game has finished sleeping.
 
Methods inherited from class org.jrabbit.standard.profiler.ProfilerDisplay
bind, buffer, color, contents, release, render, renderer, setAllVisible, setRenderer, setVisible, setVisibleFor, setVisibleForAllExcept, transforms, visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jrabbit.base.core.types.Updateable
update
 

Constructor Detail

GameLoopProfiler

public GameLoopProfiler()
Method Detail

advanceFPS

public abstract void advanceFPS()
Signals that the game has completed a cycle.


beginLogic

public abstract void beginLogic()
Signals that the game is going to update its logic.


endLogic

public abstract void endLogic()
Signals that the game has finished all purely logic-based calls.


beginRender

public abstract void beginRender()
Signals that the game is beginning a render.


endRender

public abstract void endRender()
Signals that the game has finished rendering.


beginSleep

public abstract void beginSleep()
Signals that the game is beginning its sleep phase, in order to keep a steady frame rate and conserve system resources.


endSleep

public abstract void endSleep()
Signals that the game has finished sleeping.