forked from flareteam/flare-engine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This decreases memory consumption as not so many structs are created, but only the needed amount. The implementation is based on std::vector, so random access is fast, but if there are gaps in the tile ids, still memory is wasted as the vector allocates memory for tilee ids from 0 to max tile id.
- Loading branch information
1 parent
3b77ce0
commit ac02481
Showing
2 changed files
with
48 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters