-
I've just update from using Maplibre v2.4.0 to v4.7.0 and noticed that vector map loading appears slower than in v2.4.0. On v 2.4.0, whilst zooming in/out, tiles appeared very smoothly. After doing some testing on previous versions today, it seems after mapLibre v3.0.0-pre.5, map tiles take longer to load when zooming in/out. With 3.0.0-pre.6 and later, when zooming in I get a partially loaded tile with 'jagged' roads and not all layers. When the zoom event ends, I get the full tile, but the delay is quite noticeable vs older versions. Similar for zooming out - empty areas before tiles are loaded seem a lot more noticeable on newer versions. I've tried different browsers and map tile providers and it seems pretty consistent, at least for me anyway, that map tiles are loading in significantly quicker & smoother with release prior to v3.0.0-pre.5? I've tried setting the mapOptions cancelPendingTileRequestsWhileZooming to false, but it doesn't seem to make any difference? has anyone else experienced this? Are there any settings I can change to get closer to 2.4 performance? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
"Feels shower" isn't a great way to measure things... |
Beta Was this translation helpful? Give feedback.
Hi @HarelM , thanks for pointing me in the right direction. I have found the cause for difference in performance I was experiencing between versions.
V2.4.0 defaults to 6 workers, #2354 introduced default of 1 worker in V3.0.0-pre.6.
Setting maplibregl.setWorkerCount(6) in latest v4.7.0 , I now get similar tile load performance to v2.4.0.