The EXT_disjoint_timer_query extension is part of the WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.

Documentation EXT_disjoint_timer_query by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Static variables

@:value(34917)staticinlineread onlyCURRENT_QUERY_EXT:Int = 34917

A WebGLQuery object, which is the currently active query for the given target.

@:value(36795)staticinlineread onlyGPU_DISJOINT_EXT:Int = 36795

A GLboolean indicating whether or not the GPU performed any disjoint operation.

@:value(34916)staticinlineread onlyQUERY_COUNTER_BITS_EXT:Int = 34916

A GLint indicating the number of bits used to hold the query result for the given target.

@:value(34919)staticinlineread onlyQUERY_RESULT_AVAILABLE_EXT:Int = 34919

A GLboolean indicating whether or not a query result is available.

@:value(34918)staticinlineread onlyQUERY_RESULT_EXT:Int = 34918

A GLuint64EXT containing the query result.

@:value(36392)staticinlineread onlyTIMESTAMP_EXT:Int = 36392

The current time.

@:value(35007)staticinlineread onlyTIME_ELAPSED_EXT:Int = 35007

Elapsed time (in nanoseconds).

Methods

beginQueryEXT(target:Int, query:Query):Void

The timer starts when all commands prior to beginQueryEXT have been fully executed.

createQueryEXT():Query

Creates a new WebGLQuery.

deleteQueryEXT(query:Query):Void

Deletes a given WebGLQuery.

endQueryEXT(target:Int):Void

The timer stops when all commands prior to endQueryEXT have been fully executed.

getQueryEXT(target:Int, pname:Int):Dynamic

Returns information about a query target.

getQueryObjectEXT(query:Query, pname:Int):Dynamic

Return the state of a query object.

isQueryEXT(query:Query):Bool

Returns true if a given object is a WebGLQuery.

queryCounterEXT(query:Query, target:Int):Void

Records the current time into the corresponding query object.