Back to Content

WebGLRenderingContext: finish() method

files/en-us/web/api/webglrenderingcontext/finish/index.md

latest621 B
Original Source

{{APIRef("WebGL")}}{{AvailableInWorkers}}

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

Syntax

js-nolint
finish()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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