Well polygon clipping improves performance significantly, when there is something to clip. Guess in your case this is not true ( as long as you don't zoom in/out ), so you might want to disable polygon clipping. AFAIR there was another optimization in Qwt 5.x, that drops points when they are mapped to the same position as its predecessor, what does make sense for integer coordinates only.Like instant paint being set to false by defaultbut none of them (I had polygon clipping enabled already) seems to affect performance in the way using floats does.
Well with X11 painting is done asynchronously from the X server - so your numbers might compare apples and eggs.I've build the same app on 64bit Ubuntu (same box) and it works much faster. Plotting 2m points with Qwt 5.2.0 takes 250ms.
Qwt 6.0.1 is still slower but the difference is not that noticeable - the same 2m points took 400ms to plot.
I wish I could make it work like that on windows!
But the time spent on the X server doesn't depend on doubles or ints - so the overhead of 150 ms is an interesting value.
When you start your application with "-graphicssystem raster" I would expect to see similar results on Ubuntu like on Windows ?
Of course Qwt ( not application ! ) code is where workarounds should to be added - but in the end it is a Qt problem and should be identified and maybe fixed there too. A small demo ( Qt only ) demonstrating the issue is always required.Do you have any suggestions how to speed up rendering on windows (except level of details you've already mentioned)?
5.2.0 speed was acceptable where 6.0.1 is not user friendly at all.
At the moment there are a couple of facts missing:
- Qt version
- QPen attributes used
- QPainter render hints
- ...
Uwe




but none of them (I had polygon clipping enabled already) seems to affect performance in the way using floats does.
Reply With Quote

Bookmarks