Skip to content

Some more improvements to minimap perf

Waqar Ahmed requested to merge work/minimap-perf3 into master

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 makes setPen() almost a no-op. We also avoid a lot of QBrush detaches.

Merge request reports

Loading