qgis / qwc2-demo-app

QWC2 demo application
Other
243 stars 155 forks source link

Poor performance using MVT background #503

Open cazitouni opened 12 months ago

cazitouni commented 12 months ago

Using an MVT background results in poor map performance, especially on low-end office hardware (i3-9100 on my test machine, I've also tested on an I9-12900K for good measure, it's get better but not as expected). Slowdowns really occur at low zoom levels (around 18).

The issue seems specific to the viewer, as the vector layer is very responsive when using the Leaflet provided by Tileserver GL. Could this be related to the fact that Leaflet seems to use WebGL? And could this implementation help?

My test tileset is located at https://tileserver.metrotopic.net/, and for the style, I just use the streets one provided by MapTiler.

Thanks in advance for your answer. Kind regards, Clément

manisandro commented 12 months ago

Could you post a working themes.json which can be used to look into the issue?

cazitouni commented 12 months ago

Sure @manisandro, I've just used the demo one an added the background for testing. I've also tested on a docker instance with a clean theme and result is the same. I've also tried with the basic style which is less populated but performance aren't good either.

Loading the vector seems ok ,but while draggind the map at a low zoom fps are very low. themesConfig.json

Let me know if you need anything else, Regards, Clément.