Skip to content

textmode.js / Textmodifier / targetFrameRate

Method: targetFrameRate()

ts
targetFrameRate(fps?): number | void;

Set or get the target frame rate limit.

Unlike frameRate, the getter returns the configured target instead of the measured rate.

Parameters

ParameterTypeDescription
fps?numberNew target frame rate.

Returns

number | void

Current target frame rate when called without arguments.

Example