Ignore:
Timestamp:
2015-11-14T11:43:02+01:00 (9 years ago)
Author:
wiktorn
Message:

Fix high CPU usage when showing small tiles.

  • AbstractTileSourceLayer - check insane() zoom level based on TileCache size instead of hardcoded value
  • TileCache - add interface to check size of the cache
  • TMSCachedTileLoader - remove unnnecessary TileCache interface and its methods
  • HostLimitQueue - correct log message
  • JCSCachedTileLoaderJob - add debug logs for putting request into queue and start of processing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r8864 r9004  
    12151215
    12161216        private boolean tooLarge() {
    1217             return this.tilesSpanned() > 20;
     1217            return insane() || this.tilesSpanned() > 20;
    12181218        }
    12191219
    12201220        private boolean insane() {
    1221             return this.tilesSpanned() > 100;
     1221            return size() > tileCache.getCacheSize();
    12221222        }
    12231223
Note: See TracChangeset for help on using the changeset viewer.