<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 4, 2018 at 4:57 PM Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi Alessandro,</p>
<p>Thanks for the clarification that only the change of the OpenCL-device needs a restart.</p>
<p>I tried both - acceleration in CPU and in GPU. I had the impression that the acceleration in the CPU was slightly faster than in the CPU - but not a lot faster. Maybe the GPU (Intel HD Graphics 4600) is not too powerful. It is a ThinkPad notebook, not a desktop.</p></div></blockquote><div><br></div><div>Thanks for the info!</div><div><br></div><div>Yes, maybe that the lower I/O (there is no need to transfer data to/from the graphic card) compensates the slower processing on the CPU</div><div> </div><div>Cheers</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Greetings,</p>
<p>Andreas</p>
<p>On 2018-09-04 15:56, Alessandro Pasotti wrote:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Sep 4, 2018 at 2:21 PM Andreas Neumann <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi Alessandro,</p>
<p>I just tested if the hardware acceleration (OpenCL) helps in the live hillshade renderer.</p>
</div>
</blockquote>
<div> </div>
<div> </div>
<div>Hi Andreas, </div>
<div> </div>
<div>thanks a lot for your feedback, I honestly am a little worried about the possible problems on different platforms, graphic cards and driver versions, I choose to stay on the safe side and there is a safeguard that disables the OpenCL support at the first issue in the renderer.</div>
<div> </div>
<div>The processing algs looks generally more stable (never got a single crash myself).</div>
<div> </div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>The good news is that it works stable so far and substantially improves rendering time of the live hillshade renderer. My notebook on my workplace is rather slow. Without hardware acceleration it renders the hillshade in approx 8 seconds (large window on two screens). With OpenCL acceleration set to on, it renders in about 1 second or even less. I assume quite some time is also spent on reading the file. This with resampling on (average for zooming out and bilinear for zooming in beyond native resolution).</p>
</div>
</blockquote>
<div> </div>
<div>Yes some time is spent on reading the file and some time is spend on I/O tranferring data to/from the graphic card, this means that the performance gain is usually higher on larger images than on smaller images.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hardware is an Intel HD Graphics 4600. The CPU is also listed as supported.</p>
</div>
</blockquote>
<div> </div>
<div>Can you also try the CPU? I'm curious about the performances.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Visually, with or without HW accelation on, there still are some rectangular artefacts in both versions.</p>
</div>
</blockquote>
<div> </div>
<div>Yes: that does not change, the algorithm is pretty much the same in both implementations.</div>
<div> </div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Tested on Windows.</p>
<p>--------------</p>
<p>One more thing: on my machine there is no restart of QGIS necessary for the changes (HW acceleration on of off) to be applied. This is contrary to the statement in the settings dialogue, which says, that a restart of QGIS is necessary.</p>
</div>
</blockquote>
<div> </div>
<div>The text can probably be improved: what needs a restart is if you change the device, enabling and disabling OpenCL support does not require a restart.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>---------------</p>
<p>Thanks a lot for your work!</p>
</div>
</blockquote>
<div> </div>
<div> </div>
<div>Thank you for the feedback!</div>
<div> </div>
<div> </div>
</div>
<br clear="all">
<div> </div>
-- <br>
<div class="m_-1235436202756566286gmail_signature" dir="ltr">Alessandro Pasotti<br>w3: <a href="http://www.itopen.it" rel="noopener noreferrer" target="_blank">www.itopen.it</a></div>
</div>
</blockquote>
<p><br></p>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>