-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
base: main
Are you sure you want to change the base?
Allow waiting for frames to complete rendering via GPU before sending to PipeWire consumers #1232
Conversation
…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
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.
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 |
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.
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()) { |
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.
Don't forget to run cargo +nightly fmt
Implemented
sync_point.wait()
optional functionality if enabled in debug options viaconfig.kdl
withwait-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)