From 1e98a7707a999533fc50c8df742ac6feda37937c Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 27 Mar 2024 11:31:50 +0100 Subject: [PATCH] Prefer dedicated GPU --- src/main.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 50e5cea..57c31a8 100644 --- a/src/main.zig +++ b/src/main.zig @@ -16,7 +16,10 @@ app_timer: core.Timer, title_timer: core.Timer, pub fn init(app: *App) !void { - try core.init(.{}); + try core.init(.{ + // Request high performance = prefer dedicated GPU when available. + .power_preference = .high_performance, + }); // Set up a "general purpose allocator" that will handle allocations for // the lifetime of the application, for which a more specific allocation