-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve single-instance rendering performance #4664
Comments
|
/attempt #4664
|
Thanks for filing and posting a bounty! Although appreciated, I cancelled the bounty because there are tons of contributors who would attempt this without any context. The feature request is valid but it concerns two completely separate things. Frame extraction: I'm working myself towards this goal, which would be a new video tag that would replace Chrome resources: |
@JonnyBurger understandable. Do let me know if there is anything we can do to offer support for this work |
We’ve discovered that running Remotion renderer on powerful VPSs (e.g., 48 cores, 350GB RAM) with increased concurrency does not consistently improve performance and can sometimes make rendering slower. Investigations point to two main bottlenecks:
Chrome Resource Allocation
Simply opening more Chrome tabs doesn’t linearly increase resource usage.
Running multiple browser instances (rather than multiple tabs in a single instance) can yield better (but still limited) performance gains.
OffthreadVideo Frame Extraction
Videos are extracted frame-by-frame, making it difficult to parallelize.
Composition with heavy OffthreadVideos can see significant slowdowns at high concurrency.
A thorough discussion of these findings, along with logs and performance charts, is available in the existing issue.
Goal
The goal of this issue is spark a conversation on solutions to improve single instance rendering performance, with for example:
New concurrency strategies (e.g., multi-browser instances)
Possible refactors for more efficient frame extraction (e.g., multi-threading/process compositor, preprocessing, optimistic caching, open the same video streams concurrently).
We use Remotion professionally and this would have a great impact for us, I'll open a $500 bounty for a working solution.
The text was updated successfully, but these errors were encountered: