From 6d3cbc573cffcad9fde6ad6de1a5ca99b4cdbd95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Fri, 23 Apr 2021 17:25:17 +0200 Subject: [PATCH] Instruct systems with 2 GPUs to use the low power GPU (to save battery) --- front/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/index.ts b/front/src/index.ts index de6aeb1a..21b8cac6 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -93,6 +93,8 @@ const config: GameConfig = { debug: DEBUG_MODE, } }, + // Instruct systems with 2 GPU to choose the low power one. We don't need that extra power and we want to save battery + powerPreference: "low-power", callbacks: { postBoot: game => { // Commented out to try to fix MacOS bug