Skip to content
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

Have encoder in seperate thread #87

Open
LetsMelon opened this issue Mar 23, 2023 · 0 comments
Open

Have encoder in seperate thread #87

LetsMelon opened this issue Mar 23, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@LetsMelon
Copy link
Owner

The program could have a big speed up if the encoder and renderer are in two seperate threads.

The encoder gets frames and encodes them into a video.
The renderer generates each frame and sends it to the encoder.

If the encoder and the renderer need the same time, then running them in parallel could half the total time to generate a video with rusvid.

Simple diagram:

sequenceDiagram
    Render->>+Encoder: frame 0
    Render->>+Encoder: frame 1
    Render->>+Encoder: frame 2
    Render->>+Encoder: frame 3
    Render->>+Encoder: frame ...
Loading
@LetsMelon LetsMelon added the enhancement New feature or request label Mar 23, 2023
@LetsMelon LetsMelon added this to the 0.3.0 milestone Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant