Applications can benefit from accurate timing information in a number of different ways. During application development, timing information can help identify application or driver bottlenecks. At run time, applications can use timing information to dynamically adjust the amount of detail in a scene to achieve constant frame rates. OpenGL implementations have historically provided little to no useful timing information. Applications can get some idea of timing by reading timers on the CPU, but these timers are not synchronized with the graphics rendering pipeline. Reading a CPU timer does not guarantee the completion of a potentially large amount of graphics work accumulated before the timer is read, and will thus produce wildly inaccurate results. glFinish() can be used to determine when previous rendering commands have been completed, but will idle the graphics pipeline and adversely affect application performance.
This extension provides a query mechanism that can be used to determine the amount of time it takes to fully complete a set of GL commands, and without stalling the rendering pipeline. It uses the query object mechanisms first introduced in the occlusion query extension, which allow time intervals to be polled asynchronously by the application.
Requires GLES 2..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_CURRENT_QUERY_EXT
Accepted by the |
| public static final int | GL_GPU_DISJOINT_EXT
Accepted by the |
| public static final int | GL_QUERY_COUNTER_BITS_EXT
Accepted by the |
| public static final int | GL_QUERY_RESULT_AVAILABLE_EXT
Accepted by the |
| public static final int | GL_QUERY_RESULT_EXT
Accepted by the |
| public static final int | GL_TIME_ELAPSED_EXT
Accepted by the |
| public static final int | GL_TIMESTAMP_EXT
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static long | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static long | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static boolean | |
| public static native void | |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static void |
| GL_CURRENT_QUERY_EXT | back to summary |
|---|---|
| public static final int GL_CURRENT_QUERY_EXT Accepted by the | |
| GL_GPU_DISJOINT_EXT | back to summary |
|---|---|
| public static final int GL_GPU_DISJOINT_EXT Accepted by the | |
| GL_QUERY_COUNTER_BITS_EXT | back to summary |
|---|---|
| public static final int GL_QUERY_COUNTER_BITS_EXT Accepted by the | |
| GL_QUERY_RESULT_AVAILABLE_EXT | back to summary |
|---|---|
| public static final int GL_QUERY_RESULT_AVAILABLE_EXT Accepted by the | |
| GL_QUERY_RESULT_EXT | back to summary |
|---|---|
| public static final int GL_QUERY_RESULT_EXT Accepted by the | |
| GL_TIME_ELAPSED_EXT | back to summary |
|---|---|
| public static final int GL_TIME_ELAPSED_EXT Accepted by the | |
| GL_TIMESTAMP_EXT | back to summary |
|---|---|
| public static final int GL_TIMESTAMP_EXT Accepted by the | |
| EXTDisjointTimerQuery | back to summary |
|---|---|
| protected EXTDisjointTimerQuery() | |
| glBeginQueryEXT | back to summary |
|---|---|
| public static void glBeginQueryEXT(int target, int id) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(IntBuffer ids) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(int id) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(int[] ids) Array version of: | |
| glEndQueryEXT | back to summary |
|---|---|
| public static void glEndQueryEXT(int target) | |
| glGenQueriesEXT | back to summary |
|---|---|
| public static void glGenQueriesEXT(IntBuffer ids) | |
| glGenQueriesEXT | back to summary |
|---|---|
public static int glGenQueriesEXT()
| |
| glGenQueriesEXT | back to summary |
|---|---|
| public static void glGenQueriesEXT(int[] ids) Array version of: | |
| glGetInteger64EXT | back to summary |
|---|---|
public static long glGetInteger64EXT(int pname)
| |
| glGetInteger64vEXT | back to summary |
|---|---|
| public static void glGetInteger64vEXT(int pname, LongBuffer data) | |
| glGetInteger64vEXT | back to summary |
|---|---|
| public static void glGetInteger64vEXT(int pname, long[] data) Array version of: | |
| glGetQueryiEXT | back to summary |
|---|---|
public static int glGetQueryiEXT(int target, int pname)
| |
| glGetQueryivEXT | back to summary |
|---|---|
| public static void glGetQueryivEXT(int target, int pname, IntBuffer params) | |
| glGetQueryivEXT | back to summary |
|---|---|
| public static void glGetQueryivEXT(int target, int pname, int[] params) Array version of: | |
| glGetQueryObjecti64EXT | back to summary |
|---|---|
public static long glGetQueryObjecti64EXT(int id, int pname)
| |
| glGetQueryObjecti64vEXT | back to summary |
|---|---|
| public static void glGetQueryObjecti64vEXT(int id, int pname, LongBuffer params) | |
| glGetQueryObjecti64vEXT | back to summary |
|---|---|
| public static void glGetQueryObjecti64vEXT(int id, int pname, long[] params) Array version of: | |
| glGetQueryObjectiEXT | back to summary |
|---|---|
public static int glGetQueryObjectiEXT(int id, int pname)
| |
| glGetQueryObjectivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectivEXT(int id, int pname, IntBuffer params) | |
| glGetQueryObjectivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectivEXT(int id, int pname, int[] params) Array version of: | |
| glGetQueryObjectui64EXT | back to summary |
|---|---|
public static long glGetQueryObjectui64EXT(int id, int pname)
| |
| glGetQueryObjectui64vEXT | back to summary |
|---|---|
| public static void glGetQueryObjectui64vEXT(int id, int pname, LongBuffer params) | |
| glGetQueryObjectui64vEXT | back to summary |
|---|---|
| public static void glGetQueryObjectui64vEXT(int id, int pname, long[] params) Array version of: | |
| glGetQueryObjectuiEXT | back to summary |
|---|---|
public static int glGetQueryObjectuiEXT(int id, int pname)
| |
| glGetQueryObjectuivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectuivEXT(int id, int pname, IntBuffer params) | |
| glGetQueryObjectuivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectuivEXT(int id, int pname, int[] params) Array version of: | |
| glIsQueryEXT | back to summary |
|---|---|
public static boolean glIsQueryEXT(int id)
| |
| glQueryCounterEXT | back to summary |
|---|---|
| public static native void glQueryCounterEXT(int id, int target) | |
| nglDeleteQueriesEXT | back to summary |
|---|---|
| public static void nglDeleteQueriesEXT(int n, long ids) | |
| nglGenQueriesEXT | back to summary |
|---|---|
| public static void nglGenQueriesEXT(int n, long ids) | |
| nglGetInteger64vEXT | back to summary |
|---|---|
| public static native void nglGetInteger64vEXT(int pname, long data) | |
| nglGetQueryivEXT | back to summary |
|---|---|
| public static void nglGetQueryivEXT(int target, int pname, long params) | |
| nglGetQueryObjecti64vEXT | back to summary |
|---|---|
| public static native void nglGetQueryObjecti64vEXT(int id, int pname, long params) | |
| nglGetQueryObjectivEXT | back to summary |
|---|---|
| public static native void nglGetQueryObjectivEXT(int id, int pname, long params) | |
| nglGetQueryObjectui64vEXT | back to summary |
|---|---|
| public static native void nglGetQueryObjectui64vEXT(int id, int pname, long params) | |
| nglGetQueryObjectuivEXT | back to summary |
|---|---|
| public static void nglGetQueryObjectuivEXT(int id, int pname, long params) | |