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
Report slowest frames #1381
Report slowest frames #1381
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@JonnyBurger idk if its a configuration error? or older node version |
@uragirii |
@JonnyBurger should be ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! Looks mostly good!
I realized that renderMedia() already has a return type and this would be a breaking change.
Therefore I had to change the API to be a callback in order to not break the function signature. We can refactor this in Remotion v4.
Only problem I see:
When rendering using pnpm exec remotion render src/index.tsx react-svg --log=verbose
in packages/example
, in about 20-30% of the cases, the frames are out of order:
This is the last blocker before I can merge this.
@JonnyBurger now it should be fixed. Also, there is a small "bug", the first |
@uragirii Thanks! I have noticed another bug: The timing is since the last frame was rendered, but since multiple frames are rendered in parallel, that does not reflect the time it has taken to render a frame. Fixed now! Regarding the first frame of a tab being slower, I think let's embrace it! It's useful to see the initialization time. This looks insightful to me: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And with that, fully happy 🎉
Thanks a lot for building this feature! How long did you approximately spend on this PR?
Ahh didn't thought of that! Great!
1-1.5 hour |
Fixes #1344
renderMedia
returns array of 10 slowest frames with frame indexes for user to optimise them.Tasks:
IssueHunt Summary
Referenced issues
This pull request has been submitted to: