Returns the current frames per second (FPS) for a canvas.
Takes canvasID (Int).
Returns 0.
BGI GUI
Parameters & Returns
Parameters
canvasIDInt
Returns
Int
Quick Summary
Returns the current frames per second (FPS) for a canvas.
Takes canvasID (Int).
Returns 0.
Technical Exegesis...
Returns the current frames per second (FPS) for a canvas. Searches g_canvasMap for canvasID. If not found, returns 0. Returns canvas.framesPerSecond field.
This function queries per-canvas FPS counter. FPS is calculated by CalculateCanvasFPS called from bgiFlipCanvas. Measures frames rendered in last 1-second window. Returns 0 for invalid canvas ID or if no frames rendered yet. Each canvas tracks FPS independently - enables performance monitoring per viewport. FPS updates once per second (not every frame).
Returns the current frames per second (FPS) for a canvas. Searches g_canvasMap for canvasID. If not found, returns 0. Returns canvas.framesPerSecond field.
This function queries per-canvas FPS counter. FPS is calculated by CalculateCanvasFPS called from bgiFlipCanvas. Measures frames rendered in last 1-second window. Returns 0 for invalid canvas ID or if no frames rendered yet. Each canvas tracks FPS independently - enables performance monitoring per viewport. FPS updates once per second (not every frame). Use for debugging performance, displaying FPS counter, adaptive quality settings. VSync caps FPS to monitor refresh rate (typically 60). Unlocked mode (g_3D_isSynced=false) allows higher FPS. Common pattern: display canvas FPS with text overlay for performance monitoring.