Miscellaneous

setfpscap

Sets the FPS cap value and returns no values.

Syntax

setfpscap(value: number)
Aliase set_fps_cap

Argumente

NameTypBeschreibung
valuenumberRequested FPS cap.

Beschreibung

Sets the FPS cap value and returns no values. Values that are non-finite, less than or equal to 0, or greater than 2000 are treated as 2000.

Rufe es mit 1 Parameter(n) auf: value. Die Argumenttabelle erklärt, welche Werte erforderlich sind und welche nur das Verhalten verfeinern.

Es gibt keine Daten zurück. Behandle den Aufruf als Aktion und fange Fehler an der Aufrufstelle ab.

Beispiel

Set the TaskScheduler FPS cap field and read it back with getfpscap.

setfpscap(240)
print(getfpscap())