Skip to content

Caching of tiles? #26

@kezara

Description

@kezara

I have only 1 year of professional experience in programming, so this is maybe stupid one, why not caching tiles in Dictionary<string, BitmapSource>, where string would be fileName, and then limit number of entries on, let's say 5000, and then create new instance of dictionary?
I actually tried this (only a few times), in Render class I implemented static dictionary and in RenderCached method I create instance of it, but with mbtiles file of only 153 MB and it worked quite well...
I'd like to use this library, but with extracts, I'm not sure, but probably in size of the city, maybe country, so would this be possible?
As I said, I do not have much experience, so I do not know how will this impact on memory and CPU consumption, but is this plausible?

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