ShaderWarmupOptions
Defined in: sdk/src/render/shaderWarmup.ts:27
Properties
Section titled “Properties”onProgress?
Section titled “onProgress?”
optionalonProgress?: (pending) =>void
Defined in: sdk/src/render/shaderWarmup.ts:33
Called after each frame with how many shaders are still compiling.
Parameters
Section titled “Parameters”pending
Section titled “pending”number
Returns
Section titled “Returns”void
settleFrames?
Section titled “settleFrames?”
optionalsettleFrames?:number
Defined in: sdk/src/render/shaderWarmup.ts:31
Consecutive frames in which nothing was compiling before it counts as done: a frame can ask for a shader the one before did not. Default 3.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: sdk/src/render/shaderWarmup.ts:29
How long to wait for the compiles before giving up and opening anyway. Default 30000.