Skip to main content

LimitFrameRate

A class in Root.Township, the global namespace.

Debug component that caps the frame rate by sleeping the main thread. Added by a debugging console command.

Constructors​

MemberWhat it is
LimitFrameRate()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private int targetFPSBacking field for TargetFPS (default 20).

Properties​

MemberWhat it is
int TargetFPS { get; set; }The frame rate cap.

Methods​

1 private and internal method
MemberWhat it is
private void Update()Sleeps for one target frame time whenever the measured FPS is above the target.

Used in​

Members of other types that take, return or hold a LimitFrameRate: