b2dSetMaxFPS

Category: 2D Overlay

Syntax:

b2dSetMaxFPS:Void(fps:Int)


Parameters

Returns

Void



Summary

Caps the frame rate in the modes without vsync (vsync caps it to the display already).

Takes fps (Int); 0 (the default) is no cap, and a negative value is 0. b2dFlip waits out the rest of each frame's time. On Windows the value is kept and reported, but not applied.

Returns nothing.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn