EXT_disjoint_timer_query 扩展属于 WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.

WebGL extensions are available using the WebGLRenderingContext.getExtension() method. For more information, see also 使用扩展 WebGL 教程 .

可用性: This extension should be available in WebGL1 contexts only. EXT_disjoint_timer_query_webgl2 is available in WebGL 2 上下文。

In WebGL 2, the getQueryObject 被重命名为 getQueryParameter .
In WebGL 2, other queries (such as occlusion queries and primitive queries) are possible using WebGLQuery 对象。

类型

This extension exposes a new type:

GLuint64EXT

Unsigned 64-bit integer number.

常量

This extension exposes seven new constants.

ext.QUERY_COUNTER_BITS_EXT
GLint indicating the number of bits used to hold the query result for the given target.
ext.CURRENT_QUERY_EXT
WebGLQuery object, which is the currently active query for the given target.
ext.QUERY_RESULT_EXT
GLuint64EXT containing the query result.
ext.QUERY_RESULT_AVAILABLE_EXT
GLboolean indicating whether or not a query result is available.
ext.TIME_ELAPSED_EXT

Elapsed time (in nanoseconds).

ext.TIMESTAMP_EXT

The current time.

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

方法

This extension exposes eight new methods.

ext.createQueryEXT()

创建新的 WebGLQuery .

ext.deleteQueryEXT()

Deletes a given WebGLQuery .

ext.isQueryEXT()

返回 true if a given object is a WebGLQuery .

ext.beginQueryEXT()
The timer starts when all commands prior to beginQueryEXT have been fully executed.
ext.endQueryEXT()
The timer stops when all commands prior to endQueryEXT have been fully executed.
ext.queryCounterEXT()

Records the current time into the corresponding query object.

ext.getQueryEXT()

Returns information about a query target.

ext.getQueryObjectEXT()

Return the state of a query object.

范例

var ext = gl.getExtension('EXT_disjoint_timer_query');
					

规范

规范 状态 注释
EXT_disjoint_timer_query
The definition of 'EXT_disjoint_timer_query' in that specification.
工作草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
EXT_disjoint_timer_query Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
beginQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
createQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
deleteQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
endQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
getQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
getQueryObjectEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
isQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .
queryCounterEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .

图例

不支持

不支持

兼容性未知 ?

兼容性未知

见实现注意事项。

另请参阅

元数据

  • 最后修改: