diff options
author | dP <dp@dpointer.org> | 2020-01-26 00:53:16 +0300 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2020-12-20 10:13:35 +0100 |
commit | 5ca8a0bda9157ee34c12cb4360f46493dba69979 (patch) | |
tree | babb78b7837a595e06f9b65cc4c825b0f1d3030e /src/viewport_sprite_sorter.h | |
parent | 4c1ee264a69537b93e8cb9dfd03a8e6b54672ab8 (diff) | |
download | openttd-5ca8a0bda9157ee34c12cb4360f46493dba69979.tar.xz |
Feature #7962: Significantly improve sprite sorter performance
Diffstat (limited to 'src/viewport_sprite_sorter.h')
-rw-r--r-- | src/viewport_sprite_sorter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport_sprite_sorter.h b/src/viewport_sprite_sorter.h index d9948b7c2..2a91f48a4 100644 --- a/src/viewport_sprite_sorter.h +++ b/src/viewport_sprite_sorter.h @@ -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; |