public abstract class GLProfiler extends 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 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.
|
public static int calls
public static int textureBindings
public static int drawCalls
public static int shaderSwitches
public static FloatCounter vertexCount
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()
Copyright © 2015. All rights reserved.