SetSortDepth

Description

Sets whether the AGK should sort opaque sprites by depth when drawing. This draws sprites at the front of the screen first, which fills the depth buffer so later sprites behind can be skipped. This will improve performance on fill rate limited devices where you are drawing lots of overlapping opaque sprites. It is off by default but if you do not change sprite depth frequently it is recommended to turn it on. This does not apply to transparent sprites which have their own sorting requirements. This command is deprecated, sorting is now handled automatically.

Definition

SetSortDepth( sort )

Parameters