AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkApplication.SortSpritesByDepth Property

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.

Syntax
Pascal
property SortSpritesByDepth: Boolean;

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.

Copyright (c) 2012. All rights reserved.