How can I enable "Render layers in parallel using many CPU cores" option from QGIS python console?
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – ahmadhanb, PolyGeo
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