Prefer dedicated GPU

main
copygirl 8 months ago
parent 7f5c5ce16c
commit 1e98a7707a
  1. 5
      src/main.zig

@ -16,7 +16,10 @@ app_timer: core.Timer,
title_timer: core.Timer, title_timer: core.Timer,
pub fn init(app: *App) !void { 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 // Set up a "general purpose allocator" that will handle allocations for
// the lifetime of the application, for which a more specific allocation // the lifetime of the application, for which a more specific allocation

Loading…
Cancel
Save