public abstract class GLProfiler
extends java.lang.Object
GL20Profiler,
GL30Profiler| Modifier and Type | Field and Description |
|---|---|
static int |
calls
All calls to any GL function since the last reset.
|
static int |
drawCalls
The amount of draw calls that happened since the last reset.
|
static GLErrorListener |
listener
This listener will be called when GLProfiler is enabled and any GL call sets an error number (retrievable by glGetError call).
|
static int |
shaderSwitches
The amount of times a shader was switched since the last reset.
|
static int |
textureBindings
The amount of times a texture binding has happened since the last reset.
|
static FloatCounter |
vertexCount
The amount rendered vertices since the last reset.
|
| Constructor and Description |
|---|
GLProfiler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disable()
Disables profiling by resetting the
GL20 and GL30 instances with the original ones. |
static void |
enable()
Enables profiling by replacing the
GL20 and GL30 instances with profiling ones. |
static boolean |
isEnabled() |
static void |
reset()
Will reset the statistical information which has been collected so far.
|
static java.lang.String |
resolveErrorNumber(int error) |
public static int calls
public static int textureBindings
public static int drawCalls
public static int shaderSwitches
public static final FloatCounter vertexCount
public static GLErrorListener listener
GLErrorListener.LOGGING_LISTENER.public static java.lang.String resolveErrorNumber(int error)
public static void enable()
GL20 and GL30 instances with profiling ones.public static void disable()
GL20 and GL30 instances with the original ones.public static boolean isEnabled()
public static void reset()