1

How can I enable "Render layers in parallel using many CPU cores" option from QGIS python console?

4

Use this:

from PyQt5.QtCore import QSettings, QThread
# parallel rendering
QSettings().setValue("/qgis/parallel_rendering", True)

for use max cores

from qgis.core import QgsApplication
threadcount = QThread.idealThreadCount()
QgsApplication.setMaxThreads(threadcount)

And extra for use OpenCL acceleration

QSettings().setValue("/core/OpenClEnabled", True)

Not the answer you're looking for? Browse other questions tagged or ask your own question.