Bug 502037 - Set `real_time` attribute to negative CPU cores to speed up rendering
Summary: Set `real_time` attribute to negative CPU cores to speed up rendering
Status: RESOLVED NOT A BUG
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: 24.12.3
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 17:31 UTC by Timwi
Modified: 2025-03-27 07:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timwi 2025-03-26 17:31:27 UTC
When kdenlive generates the XML file it passes to melt for rendering, it gives the `<consumer>` element the attribute `real_time="-1"`. As a result, melt will only use one thread to do frame rendering.

The speed of rendering (especially when visual effects are involved) can be improved tremendously by setting this to the negative of the number of CPU cores instead. In my case, that would be `real_time="-8"`. The negative ensures no frame drops.

Since my system has no GPU, my experiments here apply only to CPU-based rendering. Depending on how GPUs are utilized, it may or may not be beneficial to do this only if no GPU is involved.
Comment 1 Jean-Baptiste Mardelle 2025-03-27 07:32:42 UTC
The real_time parameter can be defined and passed to MLT by using the "Parallel processing" option in Kdenlive render dialog