Skip to content

API Reference / @gtkx/gl / clientWaitSyncLoop

Function: clientWaitSyncLoop() ​

clientWaitSyncLoop(sync, flags, timeoutNs): number

Defined in: overrides.d.ts:54

Blocks until a sync object is signaled or the timeout elapses, looping over glClientWaitSync in bounded chunks so long waits are not truncated by the driver's per-call limit.

Parameters ​

sync ​

GLsync

The sync object (fence) to wait on.

flags ​

number

Flags controlling the wait, such as flushing pending commands on the first call.

timeoutNs ​

number

The total time to wait, in nanoseconds.

Returns ​

number

The status of the sync object: signaled, condition satisfied, or timeout expired.