[core] cache raster tiles
This commit is contained in:
committed by
Jesse Bounds
parent
307f8e4f41
commit
8fa078c086
@@ -137,7 +137,7 @@ void Source::Impl::updateTiles(const UpdateParameters& parameters) {
|
||||
algorithm::updateRenderables(getTileFn, createTileFn, retainTileFn, renderTileFn,
|
||||
idealTiles, zoomRange, tileZoom);
|
||||
|
||||
if (type != SourceType::Raster && type != SourceType::Annotations && cache.getSize() == 0) {
|
||||
if (type != SourceType::Annotations && cache.getSize() == 0) {
|
||||
size_t conservativeCacheSize =
|
||||
((float)parameters.transformState.getWidth() / util::tileSize) *
|
||||
((float)parameters.transformState.getHeight() / util::tileSize) *
|
||||
|
||||
Reference in New Issue
Block a user