public interface JCGLProfilingType
An interface providing profiling services to components of the rendering pipeline.
Profiling proceeds by having the user first start a new frame with startFrame(). Then, the user typically creates a root context for the frame
with JCGLProfilingFrameType.getChildContext(String). Then, the
created context is passed to the various renderers and filters that the user
is using to render. The renderers and filters create new named child contexts
which are then used to record timing information.
| Modifier and Type | Method and Description |
|---|---|
int |
getFrameDelay()
As polling profiling timers every frame would cause excessive GPU/CPU
syncs, profiling implementations will typically lag behind by a given
number of frames to avoid causing the driver to synchronize.
|
JCGLProfilingFrameMeasurementType |
getMostRecentlyMeasuredFrame() |
boolean |
isEnabled() |
void |
setEnabled(boolean e)
Enable/disable profiling.
|
JCGLProfilingFrameType |
startFrame()
Start rendering a frame.
|
void |
trimContexts()
Trim any cached internal storage.
|
JCGLProfilingFrameType startFrame()
void trimContexts()
boolean isEnabled()
true iff profiling is enabledsetEnabled(boolean)void setEnabled(boolean e)
e - true iff profiling should be enabledJCGLProfilingFrameMeasurementType getMostRecentlyMeasuredFrame()
int getFrameDelay()
Copyright © 2016 <code@io7m.com> http://io7m.com