Skip to content
Commit 09ecae21 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Improve visible placemark caching. Lazy label pixmap creation.

Deleted placemarks (e.g. tile removed in vector osm) were kept in
the cache forever with their visible placemark counterpart only being
deleted on a style change (~map theme change). Placemarks that moved
out of the viewport but not being deleted directly however had their
visible placemark counterpart deleted directly, leading to a costly
recreation when the placemark moved back into the viewport soon after.

Now visible placemarks are cached only in an area around the viewport,
and eventually cleaned up when their placemark counterpart is deleted.

Lazy label pixmap creation is useful since some placemarks will never
have their label shown, its creation however is rather costly due to
the painter path involved (with glow style).
parent 63dc1432
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment