|
|
@ -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 |
|
|
|