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

Allow waiting for frames to complete rendering via GPU before sending to PipeWire consumers #1232

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

coleleavitt
Copy link

Implemented sync_point.wait() optional functionality if enabled in debug options via config.kdl with wait-for-gpu-sync-in-screencasting. Added a documentation entry in the Wiki under debug options (made it simplistic, to the point, following the other entries in the wiki so it isn't hard to understand)

Cole Leavitt added 2 commits March 8, 2025 18:14
…ndering via the GPU before being sent to PipeWire consumers, as well as updating functiion calls to dequeue_buffer_and_render to include new config argument for toggling wait functionality using wait_for_gpu_sync_in_screencasting debug field
@coleleavitt coleleavitt changed the title Allow waiting for frames to complete rendering via GPU before sending to PipeWIre consumers Allow waiting for frames to complete rendering via GPU before sending to PipeWire consumers Mar 9, 2025
Copy link
Owner

@YaLTeR YaLTeR left a comment

Choose a reason for hiding this comment

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

See, this is much better than the last time

@@ -822,6 +823,7 @@ impl Cast {
elements: &[impl RenderElement<GlesRenderer>],
size: Size<i32, Physical>,
scale: Scale<f64>,
config: &Config
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of the full config, just pass a single bool wait_for_sync: bool

) {
warn!("error rendering to dmabuf: {err:?}");
return false;
elements.iter().rev()) {
Copy link
Owner

Choose a reason for hiding this comment

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

Don't forget to run cargo +nightly fmt

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