JavaFX UI unresponsive when screen capturing on Linux Wayland

Davide Perini perini.davide at dpsoftware.org
Thu Sep 19 21:40:04 UTC 2024


Hi there...
I have a very weird issue using GStreamer under Ubuntu 24 (GNOME 
Wayland) on an NVIDIA RTX4090 and JavaFX.

This GStreamer pipeline captures the screen on wayland.
`pipewiresrc fd={1} path={2} ! videorate ! videoscale ! videoconvert`

and it creates a very intense stutter on my JavaFX program and makes its 
user interface choppy,
in addition there is some black artefact on the UI as you can see on 
this video:
https://youtu.be/pAzRK9Oy7iM

sometimes the UI renders a black frame before returning to a normal state.

JavaFX UI seems a bit unresponsive in Wayland, even when not using 
GStreamer.

There is no issue on X11.

Using JavaFX 23.

Any idea on how to solve/workaround this?

Thanks!


More information about the openjfx-discuss mailing list