-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
desktop: Add gamemode support #17940
Conversation
Bah, Also, just curious, what made you go with But technically, |
That's true.
That's also true. I could go with However, if we have good reasons to stick with (I'm also considering rewriting our |
No, quite the opposite, in agreement with you. I was just checking my assumptions. |
CI only lints on linux so I'll pretend to be a bot for a moment.
|
Dinnerbot? 👀 |
bc541b2
to
7f1f8ab
Compare
}; | ||
|
||
if cfg!(not(target_os = "linux")) && gamemode_enable { | ||
tracing::warn!("Cannot enable GameMode, as it is supported only on Linux"); |
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.
Now that I look at it, this ends up adding a pointless warning on windows by default :(
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.
Fixes #17895.
This PR adds gamemode support through ashpd (Linux-only).
Off
—gamemode is disabled,On
—gamemode is enabled,Default
—gamemode is enabled only on high power preference.--gamemode
is added.Gamemode is requested only when a SWF file is loaded.
TODO:
Default
does.i32
for pid bilelmoussaoui/ashpd#234 is released.