| Summary: | Playback very slow and choppy due to follow playhead behavior, poor timeline redraw performance | ||
|---|---|---|---|
| Product: | [Applications] kdenlive | Reporter: | jackleberry |
| Component: | Monitors & Playback | Assignee: | Jean-Baptiste Mardelle <jb> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | fritzibaby |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | Debian unstable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
jackleberry
2023-09-15 17:57:30 UTC
Upon further testing with a smaller project, it is clear that either the drawing routines are unnecessarily rendering off screen content, or the processing of the scene graph is unreasonably slow. I'm assuming that kdenlive uses at least one QT widget per clip. This likely accounts for the excessive memory consumption and a large part of the slowness. It would require a significant rewrite, but a far more efficient way to do it is to either avoid using widgets entirely (just draw the clips etc. based on the already in-memory data-structure representing the open project) or only instantiate enough widgets to represent on-screen content (some pool of widgets could be kept instantiated and just have their coordinates updated to represent different clips). Doing this conceptually simple optimization can result in timeline drawing/scrolling performance that is independent of project size. As it is, kdenlive's usability is inversely proportional to the project duration/number of tracks+clips. Which is a shame because, aside from hitting the open file limit, the program seems to be stable at large project sizes, just not performant enough re UI interactivity. Thanks for reporting. I can confirm. The more tracks have clips the slower is the playback (playback stuttering). If the timeline contains clips which doesn’t meet the project settings, playback is slow as well, specially from one clip to another. Reduce the preview resolution has no effect on playback speed. Similar to Bug 475205 |