Skip to content

raylib.SetTargetFPS

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set target FPS (maximum)

Parameters

Parameter Default Value Note
fps

Return value

None.

Notes

Example

raylib.InitWindow 800, 600, "My Game"
raylib.SetTargetFPS 60
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground raylib.BLACK
    raylib.EndDrawing
end while

Clone this wiki locally