Locus Map - forum

Support => Troubles & Questions => Topic started by: Forsberg on August 02, 2024, 16:32:14

Title: Map rotation on = lags on LM3
Post by: Forsberg on August 02, 2024, 16:32:14
Hello,

not sure if this is a bug or perhaps just LM Classic limitation without hope of fixing but on my Note 10+ phone (which was a high end league) LM can lag if a map rotation is enabled (map rotates according to the compass). I bet the frame rates drop at half, surely below 15 frames.
With disabled rotation it is much smoother.
Is it because a vector maps rotates and LM Classic engine is slow?
Title: Re: Map rotation on = lags on LM3
Post by: Menion on August 06, 2024, 17:11:13
Hi,
engine of the Locus Classic and Locus Map 4 are almost identical, so it won't be only a Classic limitation.

Check please these suggestions (https://docs.locusmap.app/doku.php?id=manual:faq:locus_performance), maybe they should help to you as well.

Anyway yes, map rotation slows down the map engine.
Title: Re: Map rotation on = lags on LM3
Post by: Forsberg on August 08, 2024, 15:50:54
Quote from: Menion on August 06, 2024, 17:11:13Hi,
engine of the Locus Classic and Locus Map 4 are almost identical, so it won't be only a Classic limitation.

Check please these suggestions (https://docs.locusmap.app/doku.php?id=manual:faq:locus_performance), maybe they should help to you as well.

Anyway yes, map rotation slows down the map engine.

Can u say what is more important for the render speed? I tweaked my kernel, cpu and gpu. When I rotate a map without rotation enabled it is more or less 50 FPS, and CPU cores used 20-50%. With rotation enabled FPS drop to 15-20 and CPU usage is also 20-50% - averagely a few percent higher per each core.

It is not 100% cpu so what is the bottleneck here?
Title: Re: Map rotation on = lags on LM3
Post by: Menion on September 26, 2024, 12:35:50
Not sure, never tested this.

How do you rotate a map? By the two fingers (there should be no limit on frames/sec) or automatically by rotating of the phone? In the second case, it depends more on the frequency of how often the rotation sensor sends new data and this is limited not to do it too often.