linuxserver / docker-rdesktop

GNU General Public License v3.0
238 stars 39 forks source link

[BUG] Bad performance on xfce #129

Closed gnzsnz closed 8 months ago

gnzsnz commented 11 months ago

Is there an existing issue for this?

Current Behavior

bad xrdp performance on xcfe desktop (potentially affecting other flavors)

xfce window manager composition is affecting performance, disabling has a significant improvement on performance, with minor funcionality impact

image

command line

xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --set=false --create

it might be possible to disable composition directly on Xorg

Section "Extensions"
 Option "Composite" "Disable"
EndSection

although I have not tested it, this could be a good solution for the base image

Expected Behavior

improved performance

Steps To Reproduce

Install an app use it daily, performance is lagging

Environment

- OS: ubuntu 22.04
- How docker service was installed: official docker ppa

CPU architecture

x86-64

Docker creation

sample docker-compose.yml

Container logs

nothing is displayed on the logs

Performance is greatly improved after disabling window manager composition

xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --set=false --create
github-actions[bot] commented 11 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

LinuxServer-CI commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

gnzsnz commented 10 months ago

let me know if i need to add any further detail to avoid this issue been closed

thelamer commented 9 months ago

I synced what we do in webtop on init https://github.com/linuxserver/docker-rdesktop/blob/master/root/defaults/startwm.sh#L3 It requires the container is restarted one time or an existing home directory is mounted in but it is the best I can do with xfce and not need to babysit it.

gnzsnz commented 9 months ago

thanks for your reply @thelamer

I'm disabling composition like this,

xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --set=false --create

which has the same end result, and less dependencies.

just to highlight another alternative. I'm fine with both options

LinuxServer-CI commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 7 months ago

This issue is locked due to inactivity