MDN self-hosted library · e01.org

WebGLRenderingContext: finish() method

WebGL

no runnable cells web-api-instance-method upstream source

WebGL

The WebGLRenderingContext.finish() method of the WebGL API blocks execution until all previously called commands are finished.

Syntax

finish()

Parameters

None.

Return value

None (undefined).

Specifications

Browser compatibility

See also

  • WebGLRenderingContext.flush()
  • WebGL best practices (which recommends avoiding finish() as it may slow down your main rendering loop)