set_target_fps
Sets the target frame rate for the game loop.
Signature
set_target_fps
Sets the target frame rate for the game loop.Signature
set_target_fps(fps: int) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
fps | int | None | fps argument for this API call. |
Returns
NoneExample
from conjure import *
init_window(360, 640, "API")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_text("Moosh", 120, 300, 28, BLACK)
end_drawing()See also
init_windowwindow_should_closeclose_window
Return to the window and frame overview or continue with the quickstart.