Implement Game Mode on macOS Sonoma
Goal
macOS Sonoma has a new feature called Game Mode, where, upon full-screening a game, it is given priority on the CPU/GPU, and the Bluetooth latency with AirPods and MFi controllers decreases. The Vanilla launcher has this, and implementing it into Prism Launcher would make Prism Launcher feel that much more native.
Motivation
I recently switched from the Vanilla launcher to Prism because the Vanilla one is quite slow, it almost performs as well (badly) as an Electron app. So I found Prism Launcher after rooting through some comparisons and it has been a fantastic experience so far, between the mod management and modloader installers, the ability to symlink between instances, etc. However, the one feature I miss from Vanilla is implementation of macOS Sonoma's Game Mode. I have experienced a noticeable drop in FPS between Minecraft in and out of Game Mode.
The comment on this Reddit thread regarding Game Mode details how apps can mark themselves as a game:
<key>LSApplicationCategoryType</key>
<string>public.app-category.games</string>I have added this to the Info.plist myself, resigned the app and opened Minecraft, but Game Mode does not activate (presumably because java is a separate process from Prism Launcher). However, the Vanilla launcher demonstrates that it is possible to do this.
Specification
Adding some way for macOS to pick up on java being used for a game, and activating Game Mode for the process. As I have not developed Java-based programs for macOS, I am not sure how to go about this. But I am hoping someone else here might know.
Drawbacks
The only drawback I foresee is additional code, making Prism slightly bigger.
Unresolved Questions
Do that many people need this? I don't know how many Prism users run macOS Sonoma (especially since it's still in beta) but it comes out to the public quite soon and being ready for that release is good form.
Alternatives Considered
I have a bunch of optimization mods in my main Minecraft instance, but performance can always be improved, and on a Mac that matters even more.
This suggestion is unique
- I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.
You may use the editor below to elaborate further.
No response
Source: PrismLauncher/PrismLauncher