Skip to content

feat: parallel rendering, make ffmpeg exporter default#74

Merged
justusmattern27 merged 24 commits into
mainfrom
justus/parallel-rendering
Apr 29, 2024
Merged

feat: parallel rendering, make ffmpeg exporter default#74
justusmattern27 merged 24 commits into
mainfrom
justus/parallel-rendering

Conversation

@justusmattern27

Copy link
Copy Markdown
Contributor

No description provided.

@justusmattern27 justusmattern27 marked this pull request as ready for review April 28, 2024 15:34

@hkonsti hkonsti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work!!!

Comment thread .github/workflows/verify.yml Outdated
Comment thread .github/workflows/verify.yml Outdated
Comment thread .github/workflows/verify.yml Outdated
Comment thread package.json
Comment thread package.json
Comment thread packages/renderer/server/renderVideo.ts Outdated
const hiddenFolderId = uuidv4();

/**
* TODO: Change this in the future after more testing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can delete this todo haha

);

renderPromises.push(renderVideoOnPage(browser, server, url));
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're losing time here. Couldn't a browser start rendering right after it's ready? Right now the first one needs to wait for all the others before it can start.

Comment thread packages/renderer/server/renderVideo.ts Outdated

for (const folder of cleanupFolders) {
try {
await fs.promises.rm(folder, {recursive: true, force: true});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could parallelize this with an array and Promise.all(). Feel free to ignore this though, I don't think we would notice any difference.

Comment thread packages/template/src/project.meta Outdated
},
"preview": {
"fps": 60,
"fps": 30,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intended?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this makes the preview in the editor smoother

Comment thread packages/ui/package.json
@justusmattern27 justusmattern27 merged commit dc9ddd1 into main Apr 29, 2024
@justusmattern27 justusmattern27 deleted the justus/parallel-rendering branch May 3, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants