Parameters & Returns
Parameters
This function takes no parameters.
Returns
Quick Summary
Returns how many draw calls the last frame used.
Takes no parameters.
Technical Exegesis...
The runtime batches 2D drawing together, so thousands of rectangles or images can go to the GPU in one draw call. Changing image, shader or blend state starts a new batch. This returns how many draw calls a frame needed (updated once a second): a sudden jump means something is breaking the batching, for example alternating between two images on every draw.
Example
Print "Draw calls: " & ToString(b2dGetDrawCalls())