# GetManagedSpriteDrawCalls

## Description

Returns the number of OpenGL draw calls used to draw all managed sprites. Generally the lower this number the better the performance. AGK attempts to batch sprites into as few draw calls as possible, it does this by looking for sprites with the same texture and drawing them at the same time. This can be improved by using SetSortTextures to turn on texture sorting to put sprites with the same texture next to each other in the draw queue.

## Definition

integer GetManagedSpriteDrawCalls()

UINT agk::GetManagedSpriteDrawCalls()