You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mapsui Platform
Tested on WPF where it was severe. Also on Avalonia where it was less severe but still clearly there.
Device
Windows Desktop
Describe the bug
The application becomes extremely sluggish when maximally zoomed out.
To Reproduce
When running the sample pasted below and zooming out so that only one tile is rendered performance significantly decreases. Even though less needs to be rendered (just one tile instead of thirty-two).
It is counter intuitive that the application gets slower when only one tile needs to be rendered. It should be faster. In fact when zooming out maximally the application hardly responds at all.
I ran all kinds of analysis tools and custom configurations. What seems to be happening is that because everything is faster there are more calls to start and stop the FetchWorkers (which rapidly conclude that there is nothing to fetch). I think the rapid creation and deletion of threads within the worker put a high load on the garbage collector and this disturbed other processes which cascaded things further.
pauldendulk
changed the title
Performance degradation with many Refresh calls and zooming out.
Performance degradation with many Refresh calls and zooming out
Apr 22, 2024
I updated the sample to the most minimal things needed to reproduce the problem. The essential thing is the high number of refresh calls. They are now at 1 million per second. That is pretty extreme and you might argue that this would cause problems in any software, but the remarkable thing is that is does not cause problems at zoom level 5 to 20, but it does at level 1 when rendering takes less time.
pauldendulk
changed the title
Performance degradation with many Refresh calls and zooming out
Performance collapse with many Refresh calls and zooming out
Apr 24, 2024
Mapsui Version
Current master
Mapsui Platform
Tested on WPF where it was severe. Also on Avalonia where it was less severe but still clearly there.
Device
Windows Desktop
Describe the bug
The application becomes extremely sluggish when maximally zoomed out.
To Reproduce
When running the sample pasted below and zooming out so that only one tile is rendered performance significantly decreases. Even though less needs to be rendered (just one tile instead of thirty-two).
The text was updated successfully, but these errors were encountered: