You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
Optimized settings for gaming aren't automatically used when running a Godot project on Linux.
This includes using the performance CPU governor to reduce stuttering, and optionally forcing high GPU clocks to reduce input lag and avoid GPU-induced stuttering (similar to NVIDIA Reflex's Boost mode).
Describe the feature / enhancement and how it helps to overcome the problem or limitation
When the daemon is installed and game engine integration is performed, GameMode automatically kicks in when the project starts, and is automatically disabled when the process exits. The user won't need to manually run the project binary with gamemoderun.
Note that Feral GameMode integration only works if the GameMode daemon is installed on the system. It's available in distribution repositories and may be installed by default on some distributions.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Add an Application > Run > Use Game Mode project setting (enabled by default).
The setting's name is OS-agnostic, which could allow toggling other operating systems' game mode into a single setting (if these are implemented). Documentation should however mention that the setting will only have an effect on Linux at first, and only on systems with the GameMode daemon installed.
To preserve battery life on laptops, the editor itself is not affected by this setting, but the project running from the editor is.
If needed, we can add a Allow Game Mode editor setting that forcibly disables GameMode integration when running a project from the editor, even if the project has the setting enabled.
Integrate libgamemode into the core engine.
If this enhancement will not be used often, can it be worked around with a few lines of script?
GameMode can be set up by the user themselves as explained above, but this is less convenient compared to engine-level integration.
Alternatively, a launcher script can be provided that uses gamemoderun if found on the system:
To only affect the project running from the editor, the Main Run Args project setting can be edited to gamemoderun %command%. This will however cause the project to fail starting if gamemode is not installed on the system.
Is there a reason why this should be core and not an add-on in the asset library?
To my knowledge, GameMode engine integration must be done at a core level, as it hooks into low-level, early main() initialization.
The text was updated successfully, but these errors were encountered:
Related to #5449 and #5451.
Describe the project you are working on
The Godot editor 🙂
Describe the problem or limitation you are having in your project
Optimized settings for gaming aren't automatically used when running a Godot project on Linux.
This includes using the
performance
CPU governor to reduce stuttering, and optionally forcing high GPU clocks to reduce input lag and avoid GPU-induced stuttering (similar to NVIDIA Reflex's Boost mode).Describe the feature / enhancement and how it helps to overcome the problem or limitation
When the daemon is installed and game engine integration is performed, GameMode automatically kicks in when the project starts, and is automatically disabled when the process exits. The user won't need to manually run the project binary with
gamemoderun
.Note that Feral GameMode integration only works if the GameMode daemon is installed on the system. It's available in distribution repositories and may be installed by default on some distributions.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this enhancement will not be used often, can it be worked around with a few lines of script?
GameMode can be set up by the user themselves as explained above, but this is less convenient compared to engine-level integration.
Alternatively, a launcher script can be provided that uses
gamemoderun
if found on the system:To only affect the project running from the editor, the Main Run Args project setting can be edited to
gamemoderun %command%
. This will however cause the project to fail starting if gamemode is not installed on the system.Is there a reason why this should be core and not an add-on in the asset library?
To my knowledge, GameMode engine integration must be done at a core level, as it hooks into low-level, early
main()
initialization.The text was updated successfully, but these errors were encountered: