redotvideo / revideo

Create Videos with Code
https://re.video
MIT License
2.58k stars 87 forks source link

last workers take longer when doing parallel rendering #307

Open justusmattern27 opened 1 month ago

justusmattern27 commented 1 month ago

When doing parallel rendering, the workers handling later part of the scenes take longer than the early ones (e.g. worker 0 takes much longer than worker 20). This is likely because of the way we use generator functions for scenes, which makes it more expensive to skip to later parts of a video. Two possible things we can look at:

  1. Reduce the time it takes to skip
  2. Give user the option to let later workers handle fewer frames than early workers