b2dGetGPUTime

Category: 2D Overlay

Syntax:

b2dGetGPUTime:Double()



Returns

Double



Summary

Returns the average time the GPU spends on a frame, in milliseconds (-1 if it isn't known yet).

Takes no parameters.

View detailed documentation online



Example
Print "GPU: " & ToString(b2dGetGPUTime()) & " ms"

BambooBasic © 2026 Michael Denathorn