<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">If you want to try some python, you could make a variant of this (1) to export in parallel (thanks Nyall for most of the key rendering logic there). Note teh complete plugin shown there is not functional yet, and you would need to adapt it to temporal based rendering.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">(1) <a href="https://github.com/timlinux/QGISAnimationWorkbench/blob/main/animation_workbench.py#L211">https://github.com/timlinux/QGISAnimationWorkbench/blob/main/animation_workbench.py#L211</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Tim</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 22, 2022 at 7:02 PM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Dolf,<br>
<br>
I hope others can confirm/falsify, but I do not think you can do parallel painting, as QGIS has just one MapCanvas, and for what I know QGIS first paints the map on that MapCanvas (given your layers, styles, temporal filter etc etc), and then 'just' creates an image from that?<br>
But maybe I'm wrong in this.<br>
<br>
Slow (as in Hours?) that would be a huge map or very complex styling, OR a lot of timesteps/frames?<br>
Also: how does QGIS itself render your map if you step through it using the temporal controller? Can you maybe set (spatial/temporal) indexes on your data?<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
On 2/22/22 10:06, Dolf Andringa wrote:<br>
> Hi all,<br>
> <br>
> The temporal animation functionality of QGIS is great. I am currently playing with it, probably a little out-of-scope, to make a travel animation on a map. Everything works great, except that at high frame rates and high resolution, exporting the animation to images is very slow (hours).<br>
> <br>
> I dug into the code a little, and in bool QgsTemporalUtils::exportAnimation<br>
> I see:<br>
> <br>
> while ( currentFrame < totalFrames )<br>
> {<br>
>      ...<br>
>      QPainter p( &img );<br>
>      QgsMapRendererCustomPainterJob job( ms, &p );<br>
>      job.start();<br>
>      job.waitForFinished();<br>
>      ...<br>
> }<br>
> <br>
> Which renders each image in sequence. I am new to QGIS development specifically, so forgive my ignorance, but could the jobs system be used to render them in parallel instead? Could this potentially speed up the process significantly? If this is feasible, I'd gladly make a feature request, and it also looks like a nice PR I could contribute myself potentially? I'd love to hear your thoughts.<br>
> Cheers,<br>
> <br>
> Dolf.<br>
> <br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="text-align:center">------------------------------------------------------------------------------------------</div><div style="text-align:center"><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small;display:inline">​</div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=7ebbf93252&view=fimg&th=15a9e43c0bbf93ca&attid=0.1&disp=emb&realattid=9436e64174762963_0.1.1&attbid=ANGjdJ-WL_J24nvBiYidJ0V0xpdsYqRwswi5nq5oywcJEHC7twYVMrxG0y-GNPu_ahJthV8ktXwYuHoVm5DI2FrRAtPzelTRHrsE2wweR9uu8wT-zz2hNRqFwi4SorQ&sz=s0-l75-ft&ats=1488721675176&rm=15a9e43c0bbf93ca&atsh=1" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;"><br></div><div style="text-align:center">Tim Sutton</div><div style="text-align:center"><span style="text-align:start">Visit </span><a href="http://kartoza.com/" style="text-align:start" target="_blank">http://kartoza.com</a><span style="text-align:start"> to find out about open source:</span><br style="text-align:start"><span style="text-align:start"> * Desktop GIS programming services</span><br style="text-align:start"><span style="text-align:start"> * Geospatial web development</span></div><div style="text-align:center"><span style="text-align:start">* GIS Training</span></div><div style="text-align:center"><span style="text-align:start">* Consulting Services</span></div><div style="text-align:center"><div style="text-align:center"></div><div style="text-align:start"><div style="text-align:center">Tim is a member of the QGIS Project Steering Committee</div><div style="text-align:center">-------------------------------------------------------------------------------------------</div></div></div></div></div></div></div>