-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: smart map loader #1395
feat: smart map loader #1395
Conversation
This reverts commit ec85e1a.
…to smart-map-loader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only tried this along with other commmits -- will try in isolation soon.
But it seems to cause monsters to not behave consistently when trying to chose a target to attack. Some of them work ok, some monsters just stand around
fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos, SonarCloud Quality Gate passed! |
Introducing the Smart Map Loader feature, a significant optimization in the loading and handling of maps. The implementation aims to improve the efficiency and clarity of the code, making map loading smarter and more effective. The system creates a map cache with a streamlined structure, where tiles and items with the same properties are shared among each other. This results in an improvement in memory consumption of approximately 130%. Note: As characters explore the map, the 'true' tiles are processed from this cache.
Description
This system creates a map cache with a simple structure and the tiles/items with the same property are shared between each other, resulting in an improvement in memory consumption of ~130%.
Note: As characters explore the map, the "true" tiles are processed from this cache.
Global Map Test:
