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 · 8 comments
Open

Add some gamemode optimization configs to Wiki page #54

PhoenixEmik opened this issue Dec 4, 2023 · 8 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

@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

According to https://www.pling.com/p/1502826 , Autocomposer has been updated and works again now.

@whrvt
Copy link
Collaborator

whrvt commented Dec 16, 2024

newer builds of proton-osu should automatically set sensible niceness on osu! threads and rtprio for wineserver, if the user has the relevant permissions, negating the need for gamemode
composition is a different issue though, im not sure how that behaves by default

@PhoenixEmik
Copy link
Contributor Author

PhoenixEmik commented Dec 16, 2024

The compositing causes cursor movement input lag even in full screen mode, which is similar to dwm.exe causing input lag in windowed mode on Windows OS.
This is not related to threads or rtprio but a window manager thing. I use gamemode to help me disable compositing automatically only.

@NelloKudo
Copy link
Owner

Well now that the new Autocomposer is finally out (and it now works on all X11 DEs) I'll just add a section for it in the wiki, along with the ones for niceness 🏃🏻

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

4 participants