Batch Rendering of House Numbers
Open, NormalPublic

nienhueser moved this task from Backlog to Vector Rendering on the Marble board.
rahn added a subscriber: rahn.Nov 19 2016, 4:57 PM

Currently the house numbers are drawn as part of the building rendering. This results in expensive pen/brush/state changes and should be avoided.

The current idea is to draw all housenumbers in a batch using QPainter::drawPixmapFragments(). This could be done by:

  • passing the housenumber + x + y (+ color + fontsize) to an UnLayoutedLabeler instance which creates matching pixmaps of the labels, stores them in a QPixmapCache
  • have all label pixmaps painted in a batch using QPainter::drawPixmapFragments.