Skip to content

Conversation

@Adonca2203
Copy link
Owner

This optimization gives the following benefits:

  1. Provides a framework where each mode can now implement their own worker for how to handle encoded frames allowing for extension into regular recording and anything else we could want.
  2. Further optimizes the workflow, offloading buffer addition to its own worker thread which frees up time on the main encoder thread -- Previously this thread averaged ~20ms on the VAAPI encoder which was horrible; causing the queue to fill up as we weren't popping fast enough. Now it averages 15ms for VAAPI the vaapi workflow which is still cutting it close but I think its just related to all the overhead regarding scaling and such.
  3. Renamed the VideoBuffer to better reflect its actual use case

@Adonca2203 Adonca2203 merged commit 0415172 into main May 6, 2025
4 checks passed
@Adonca2203 Adonca2203 deleted the decoupling branch July 14, 2025 02:58
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.

1 participant