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:
Nathan Olson
2026-02-21 03:38:10 -08:00
committed by GitHub
parent 8e0dc86956
commit 7fe58506c4
45 changed files with 650 additions and 86 deletions

View File

@@ -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);