Click or drag to resize
GeneralRulesLimitFrameRate Method
Limit the frame rate of the game to the specified number of frames per second. Call this only once per frame.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void LimitFrameRate(
	int fps
)

Parameters

fps
Type: SystemInt32
Frames per second.
Remarks
If this is called twice per frame, the effect would be to limit the frame rate to half the specified value, and more calls will make the game run even slower.
See Also