GPU Particles

self:set_fixed_fps

Client

Sets the fixed simulation framerate of the emitter

Syntax

local status = self:set_fixed_fps(
    fps
)

Parameters

TypeNameDescription
intfpsFixed framerate, 0 to follow the render framerate

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Lock an emitter to 30 FPS
local entity = particle.gpu.create()

entity:set_fixed_fps(30)

On this page