Permalink
Browse files

Fixed problem with ingnored settings of maximum number of threads and…

… thread priority when queue is rendered
  • Loading branch information...
buddhi1980 committed May 6, 2017
1 parent 479f5de commit 3b473535cff164242b0c8b4e326a8a734968f3b1
Showing with 7 additions and 0 deletions.
  1. +5 −0 mandelbulber2/src/queue.cpp
  2. +2 −0 mandelbulber2/src/render_queue.cpp
@@ -551,6 +551,11 @@ void cQueue::RenderQueue() const
QObject::connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
thread->setObjectName("RenderQueue");
//this is needed to get settings from main parameter container.
//Further will be used only local container
systemData.numberOfThreads = gPar->Get<int>("limit_CPU_cores");
systemData.threadsPriority = gPar->Get<int>("threads_priority");
thread->start();
}
@@ -137,6 +137,8 @@ void cRenderQueue::slotRenderQueue()
parSettings.Decode(queuePar, queueParFractal, queueAnimFrames, queueKeyframes);
queuePar->Set("image_preview_scale", 0);
queuePar->Set("limit_CPU_cores", systemData.numberOfThreads);
queuePar->Set("threads_priority", systemData.threadsPriority);
bool result = false;
switch (queueItem.renderType)

0 comments on commit 3b47353

Please sign in to comment.