-
Notifications
You must be signed in to change notification settings - Fork 55
Description
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?