diff options
author | Wolfgang Bremer <wolfgang@w-bremer.de> | 2015-05-11 02:41:58 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-06-01 05:30:53 +0000 |
commit | a2af44354014d1f3d10727a7381fb5273917ae1f (patch) | |
tree | 55f75ad5953de37a61a889439306c9360fa23cee /dist | |
parent | f49cff62775b6699a6a2edcdcfe0c9f6b3ecc7d2 (diff) | |
download | qtlocation-a2af44354014d1f3d10727a7381fb5273917ae1f.tar.gz |
Improve Polyline MapItem
The old implementation used polygons added to a QPainterPath for the
screenBounds and the "contains" area calculation on each screen update
and thus had a huge performance impact when using more complex
polyline map items with several hundred points.
The new implementation only calculates the screenBounds on each screen
update. However, the contains check uses a similar logic to the
previous QPainterPath approach but is way more performant. This is
achieved by testing only parts of the polyline and not the whole
QPainterPath at once.
Change-Id: Ia332343f40ff865079fc86f0241a3f46a650162d
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions