public final class JCGLProfiling extends Object implements JCGLProfilingType
JCGLProfilingType interface.| Modifier and Type | Method and Description |
|---|---|
int |
frameDelay()
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.
|
boolean |
isEnabled() |
JCGLProfilingFrameMeasurementType |
mostRecentlyMeasuredFrame() |
static JCGLProfilingType |
newProfiling(JCGLTimersType t)
Construct a new profiling interface.
|
void |
setEnabled(boolean e)
Enable/disable profiling.
|
JCGLProfilingFrameType |
startFrame()
Start rendering a frame.
|
void |
trimContexts()
Trim any cached internal storage.
|
public static JCGLProfilingType newProfiling(JCGLTimersType t)
t - Access to timerspublic JCGLProfilingFrameType startFrame()
startFrame in interface JCGLProfilingTypepublic void trimContexts()
trimContexts in interface JCGLProfilingTypepublic boolean isEnabled()
isEnabled in interface JCGLProfilingTypetrue iff profiling is enabledsetEnabled(boolean)public void setEnabled(boolean e)
setEnabled in interface JCGLProfilingTypee - true iff profiling should be enabledpublic JCGLProfilingFrameMeasurementType mostRecentlyMeasuredFrame()
mostRecentlyMeasuredFrame in interface JCGLProfilingTypepublic int frameDelay()
JCGLProfilingTypeframeDelay in interface JCGLProfilingTypeCopyright © 2017 <code@io7m.com> http://io7m.com