Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

high memory usage #61

@klusark

Description

@klusark

Lets say I have a dungeon with 100 levels where each level is 70x70 tiles, that equals a total of 490000. Each tile is around 128 bytes (according to the chrome debugger). That means the dungeon alone takes around 60MB of memory.

Instead of generating and storing all the levels, maybe just generated them as needed and store only the current one, and any levels that a player has died on? That would leave a max of around 3MB of memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions