Thanks for the clarification Emux. Just wanted top follow up with some questions
- how do I make the cache persistent?
- Why doesn't the map render faster if I remove lots of stuff tom XML render file? I removed terrain, cities and water and it was pretty much as slow. That was a bit counter intuitive to me
- Can I use a different dpi? I really don't need "retina" resolution. I'd much rather have speed.
- Do you have a render theme you recommend for speed?
- Is the dev branch worth a shot or is it too buggy?
- Is the dev branch worth a shot or is it too buggy?
static TileCache createTileCache (Context c, String id, int tileSize, float screenRatio, double overdraw, boolean threaded, int queueSize, boolean persistent)
this.tileCache=AndroidUtil.createTileCache(this, "mapcache", this.mapView.getModel().displayModel.getTileSize(), 1.0f, this.mapView.getModel().frameBufferModel.getOverdrawFactor(), true, 10, true);static TileCache createExternalStorageTileCache (Context c, String id, int firstLevelSize, int tileSize, boolean threaded, int queueSize, boolean persistent)
So we have cases in which we have few tiles in the world map (16 or so) each of which takes long to render but they don't really change, since any change would be at a zoom level that is not displayed anyway.
Am I right to assume that implementing a persistent cache would solve all issues?
Which one to use to have a cache on disk? I might have misunderstood the word "persistent" here but the second one seems what I need?
Also, do I want a threaded cache and what queue depth? Can you perhaps write a line as an example for that?
Error:(715, 37) error: no suitable method found for createTileCache(APP,String,int,float,double,boolean,int,boolean)method AndroidUtil.createTileCache(Context,String,int,float,double,boolean) is not applicable(actual and formal argument lists differ in length)method AndroidUtil.createTileCache(Context,String,int,float,double) is not applicable(actual and formal argument lists differ in length)method AndroidUtil.createTileCache(Context,String,int,int,int,double,boolean) is not applicable(actual and formal argument lists differ in length)method AndroidUtil.createTileCache(Context,String,int,int,int,double) is not applicable(actual and formal argument lists differ in length)