public interface JRenderer
JRendererTarget
Modifier and Type | Method and Description |
---|---|
long |
getAverageCycleTimeNanos()
Calculates the total average time for each rendering cycle.
|
long |
getFPS()
Calculates the frames per second being drawn to the screen.
|
TimingSource |
getTimingSource()
Gets the timing source being used by the renderer.
|
void |
invokeLater(java.lang.Runnable task)
Submits a task to be run by the renderer in the same thread context that
its
JRendererTarget uses. |
void |
shutdown()
Shuts down rendering.
|
void invokeLater(java.lang.Runnable task)
JRendererTarget
uses.
Safe to be called at any time within any thread.
task
- a task for the renderer.TimingSource getTimingSource()
long getFPS()
Safe to be called at any time within any thread.
long getAverageCycleTimeNanos()
Safe to be called at any time within any thread.
void shutdown()
Safe to be called at any time within any thread.