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

Add some gamemode optimization configs to Wiki page #54

Open
PhoenixEmik opened this issue Dec 4, 2023 · 4 comments
Open

Add some gamemode optimization configs to Wiki page #54

PhoenixEmik opened this issue Dec 4, 2023 · 4 comments

Comments

@PhoenixEmik
Copy link
Contributor

PhoenixEmik commented Dec 4, 2023

It's good to make an optimization while running osu! in windowed mode on KDE, which can be added to https://github.com/NelloKudo/osu-winello/wiki/(Possibly)-optimize-your-game:-Gamemode
Adding the following configs to /etc/gamemode.ini will disable compositing automatically when launching osu! (or any other programs) via gamemode. And it will enable compositing after exiting osu!.

[custom]
start=kdialog --title 'Gamemode' --passivepopup 'Started' 2
start=qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.suspend
end=kdialog --title 'Gamemode' --passivepopup 'Stopped' 2
end=qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume

On some distros (eg. openSUSE Tumbleweed), use qdbus-qt5 instead of qdbus.

[custom]
start=kdialog --title 'Gamemode' --passivepopup 'Started' 2
start=qdbus-qt5 org.kde.KWin /Compositor org.kde.kwin.Compositing.suspend
end=kdialog --title 'Gamemode' --passivepopup 'Stopped' 2
end=qdbus-qt5 org.kde.KWin /Compositor org.kde.kwin.Compositing.resume
@NelloKudo
Copy link
Owner

I guess I could but I provide the same instructions for KDE at least in the Compositing page of the wiki, installing Autocomposer should do the same job.

Still providing more info for gamemode sounds good, I guess I’ll do it when I’m free ;)

@PhoenixEmik
Copy link
Contributor Author

PhoenixEmik commented Dec 4, 2023

Autocomposer only works when a fullscreen application is running, it does nothing with windowed mode osu!. That's the reason that I use gamemode.
BTW disable desktop effects option in Lutris is broken so that doesn't help. lutris/lutris#2596

@tloc241
Copy link

tloc241 commented Jul 16, 2024

omg, this post actually fixing my suttering issue while using gamemode 0_0
(didn't expect it to work bcs my DE is lxqt not kde)

@PhoenixEmik
Copy link
Contributor Author

The qdbus method has been removed in KDE Plasma 6. And the popular KWin script Autocomposer is also broken now.
The hotkey for toggling compositing still works instead:

xdotool key shift+alt+F12   # the F has to be uppercase

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

No branches or pull requests

3 participants