Skip to content
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

Optimize drawing: Dynamically add/remove layers to reduce memory usage #214

Closed
herzbube opened this issue Jun 20, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@herzbube
Copy link
Owner

commented Jun 20, 2014

With tiling implemented, the main consumer of memory are the large number of layers. In many situations, not all layers are actually needed. For instance, if the user has not enabled territory statistics, the layer that draws the statistics just sits around and wastes memory.

The fix for this is to dynamically add and remove layers as they are needed. Adding and removing layers costs performance, but I expect this to be negligible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.