GeneralRules.LimitFrameRate 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
Syntaxpublic virtual void LimitFrameRate(
int fps
)
Parameters
- fps
- Type: System.Int32
Frames per second.
RemarksIf 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