Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] remove throttling from geometry tile
Browse files Browse the repository at this point in the history
- This doesn't work for asynchronous rendering -  see #9611
  • Loading branch information
ivovandongen committed Sep 22, 2017
1 parent ca4f0bb commit e18da38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/mbgl/tile/geometry_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <mbgl/text/collision_tile.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/style/filter_evaluator.hpp>
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/logging.hpp>
#include <mbgl/actor/scheduler.hpp>

Expand Down Expand Up @@ -58,7 +57,6 @@ GeometryTile::GeometryTile(const OverscaledTileID& id_,
parameters.pixelRatio),
glyphManager(parameters.glyphManager),
imageManager(parameters.imageManager),
placementThrottler(Milliseconds(300), [this] { invokePlacement(); }),
lastYStretch(1.0f),
mode(parameters.mode) {
}
Expand Down Expand Up @@ -102,11 +100,7 @@ void GeometryTile::setPlacementConfig(const PlacementConfig& desiredConfig) {

++correlationID;
requestedConfig = desiredConfig;
if (mode == MapMode::Continuous) {
placementThrottler.invoke();
} else {
invokePlacement();
}
invokePlacement();
}

void GeometryTile::invokePlacement() {
Expand Down
3 changes: 1 addition & 2 deletions src/mbgl/tile/geometry_tile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ class GeometryTile : public Tile, public GlyphRequestor, ImageRequestor {

std::unordered_map<std::string, std::shared_ptr<Bucket>> symbolBuckets;
std::unique_ptr<CollisionTile> collisionTile;

util::Throttler placementThrottler;

float lastYStretch;
const MapMode mode;

Expand Down

0 comments on commit e18da38

Please sign in to comment.