Some more improvements to minimap perf
This squeezes out some more perf by doing the following changes:
- Only run selection-draw loop if we actually have a selection (we don't have a selection 99% of the times)
- Use a cache for
QPen
. This effectively makessetPen()
almost a no-op. We also avoid a lot of QBrush detaches.