Feature #7962: Significantly improve sprite sorter performance

This commit is contained in:
dP
2020-01-26 00:53:16 +03:00
committed by Patric Stout
parent 4c1ee264a6
commit 5ca8a0bda9
3 changed files with 222 additions and 84 deletions

View File

@@ -36,7 +36,7 @@ struct ParentSpriteToDraw {
int32 top; ///< minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
int32 first_child; ///< the first child to draw.
bool comparison_done; ///< Used during sprite sorting: true if sprite has been compared with all other sprites
uint32 order; ///< Used during sprite sorting
};
typedef std::vector<ParentSpriteToDraw*> ParentSpriteToSortVector;