mach: add is_app option to disable gamemode in desktop applications; use parseIp4 (#544)

* mach: add `is_app` option to disable gamemode in desktop applications
* use parseIp4 instead of resolveIp (which throws a compile error in windows)
This commit is contained in:
Ali Chraghi 2022-09-17 11:02:27 +04:30 committed by GitHub
parent 47d1544b64
commit 6043c7eae6
Failed to generate hash of commit
3 changed files with 48 additions and 45 deletions

View file

@ -51,6 +51,9 @@ pub const Options = struct {
/// Whether the application has a preference for low power or high performance GPU.
power_preference: gpu.PowerPreference = .undef,
/// If set, optimize for regular applications rather than games. e.g. disable Linux gamemode / process priority, prefer low-power GPU (if preference is .undef), etc.
is_app: bool = false,
};
pub const Event = union(enum) {