> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# setfpscap

> 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.

<div className="real-function-page">
  ```lua theme={null}
  setfpscap(value: number)
  ```

  ## 별칭

  * `set_fps_cap`

  ## 인수

  <ParamField path={"value"} type={"number"} required>
    Requested FPS cap.
  </ParamField>

  ## 예제

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

  ```lua theme={null}
  setfpscap(240)
  print(getfpscap())
  ```
</div>
