Implement distance-based tile LOD (#4057)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -25,8 +25,9 @@ static void TileCoverPitchedViewport(benchmark::State& state) {
|
||||
transform.jumpTo(CameraOptions().withCenter(LatLng{0.1, -0.1}).withZoom(8.0).withBearing(5.0).withPitch(40.0));
|
||||
|
||||
std::size_t length = 0;
|
||||
const Range<uint8_t> zoomRange(0, 14);
|
||||
while (state.KeepRunning()) {
|
||||
auto tiles = util::tileCover({transform.getState()}, 8);
|
||||
auto tiles = util::tileCover({transform.getState()}, 8, zoomRange);
|
||||
length += tiles.size();
|
||||
}
|
||||
benchmark::DoNotOptimize(length);
|
||||
|
||||
Reference in New Issue
Block a user