https://bugs.kde.org/show_bug.cgi?id=430193

            Bug ID: 430193
           Summary: renderwidget.cpp overriding threadCount for real_time
                    mlt option
           Product: kdenlive
           Version: git-master
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: User Interface
          Assignee: j...@kdenlive.org
          Reporter: j.straight-...@straights.net
  Target Milestone: ---

I noticed that no matter what I set for threads, or parallel processing, or
setting real_time= in render options, I could not get the final render to use
all my cores, like I could in timeline previews by setting real_time=-12 in
encoder options.

Let me preface this by saying that I'm no c++ dev. I have zero experience
there.

But I looked at the source and I found out that it was either 1, or 4 threads.
So I changed it to use the KdenliveSettings::encodethreads() instead, and now
mlt uses the proper number of cores/threads I have set in the rendering dialog.

    int threadCount = QThread::idealThreadCount();
    if (threadCount < 2 || !m_view.parallel_process->isChecked() ||
!m_view.parallel_process->isEnabled()) {
        threadCount = 1;
    } else {
        threadCount = KdenliveSettings::encodethreads();
    }

The threadCount = KdenliveSettings::encodethreads(); was what I changed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to