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:
parent
47d1544b64
commit
6043c7eae6
3 changed files with 48 additions and 45 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue