[core] Don't copy TileLayerIndexes on every frame.
Fixes issue #11811 (too much CPU time spent in CrossTileSymbolIndex).
This commit is contained in:
@@ -62,7 +62,7 @@ CrossTileSymbolLayerIndex::CrossTileSymbolLayerIndex() {
|
||||
}
|
||||
|
||||
bool CrossTileSymbolLayerIndex::addBucket(const OverscaledTileID& tileID, SymbolBucket& bucket, uint32_t& maxCrossTileID) {
|
||||
auto thisZoomIndexes = indexes[tileID.overscaledZ];
|
||||
const auto& thisZoomIndexes = indexes[tileID.overscaledZ];
|
||||
auto previousIndex = thisZoomIndexes.find(tileID);
|
||||
if (previousIndex != thisZoomIndexes.end()) {
|
||||
if (previousIndex->second.bucketInstanceId == bucket.bucketInstanceId) {
|
||||
|
||||
Reference in New Issue
Block a user