Hi,<br><br>1) Bart started Merkaartor as a learning project, so I guess he didn't know about Graphic view (or he didn't want to use it for whatever reason only he knows). Actually, neither did I when I started to work on Merkaartor...<br>
2) I tried once to make the switch but abandoned because it was a hell of a job and...<br>3) I'm not at all convinced performance would be better. Principle of Graphic view (as I understand it) is that you draw everything and Qt handles the rest. Although panning would probably be faster, having to "draw" everything first would mean high latency before first display, this every time the zoom level changes (have to redraw because not every feature is displayed at all zoom levels) and far greater memory consumption, which would probably make low spec machines swap a lot with large areas downloaded.<br>
4) Graphic view being a "middle-level" api, I assume it ought to be slower (due to the overhead) that the "lower-level" api we are using. If it is not, it only means that we are not efficiently painting as we are now.<br>
5) drawDownloadedArea is a good example of something hard to implement the Graphic view way. Basically, it would mean drawing red dots on the Graphics view equivalent of the whole world, besides tiny rectangles where data has been downloaded. I'm not sure this would be efficiently handled by Qt.<br>
<br>Bottom line is that it would have been easier and cleaner to use at the very beginning, but nowadays would be mucho work to switch with no sure benefits...<br><br>Regards<br>- Chris -<br><br><div class="gmail_quote">2008/11/20 Daniel Hermann <span dir="ltr"><<a href="mailto:hermann%2Bmerkaartor@tfp.uni-karlsruhe.de">hermann+merkaartor@tfp.uni-karlsruhe.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I'm new to openstreetmap and merkaartor. I looked a little bit into the code<br>
and discovered that you don't use Qt4 Graphics View framework. Is there a<br>
specific reason for not using this? I guess it would improve performance<br>
quite a bit if, for instance, drawDownloadArea() were not called in each<br>
paintEvent() call.<br>
<br>
cheers,<br>
<br>
Daniel<br>
<br>
_______________________________________________<br>
Merkaartor mailing list<br>
<a href="mailto:Merkaartor@openstreetmap.org">Merkaartor@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/merkaartor" target="_blank">http://lists.openstreetmap.org/listinfo/merkaartor</a><br>
</blockquote></div><br>