GPU Particles

self:set_preprocess

Client

Sets how long the emitter is simulated ahead before it first draws

Syntax

local status = self:set_preprocess(
    seconds
)

Parameters

TypeNameDescription
floatsecondsPreprocess time in seconds, at least 0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Pre-warm an emitter
local entity = particle.gpu.create()

entity:set_preprocess(2)

On this page