From 152488b69d082f5479dd1020c241b280051d42f8 Mon Sep 17 00:00:00 2001 From: NoTuxNoBux <73220431+NoTuxNoBux@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:06:38 +0200 Subject: [PATCH 1/2] Add note on GPU selection for hybrid systems --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f1a6dd5..67ba212 100644 --- a/README.md +++ b/README.md @@ -68,3 +68,12 @@ uri=$(python -c 'import sys,pathlib; print(pathlib.Path(sys.argv[1]).resolve().a xdg-open zed://file$uri ``` + +## Unity Editor GPU Selection + +The Flatpak sets `PrefersNonDefaultGPU=true` [in the desktop file](https://github.com/flathub/com.unity.UnityHub/blob/master/com.unity.UnityHub.desktop#L11C1-L11C26), but even without it set the Unity Editor might prefer +the dedicated GPU because it seems to enumerate and select a GPU manually. If you have a hybrid GPU system, this might cause +the editor to always run on the dedicated GPU, which might be what you want but in some cases might not. + +To override this, in the Hub you can right-click your project and use 'Add command line arguments' to add e.g. `-gpu 0` +or `-gpu 1` to select between available GPUs. From 7d2f985d29105bbf9bb6bd7ac2872dc7a569588f Mon Sep 17 00:00:00 2001 From: NoTuxNoBux <73220431+NoTuxNoBux@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:12:20 +0200 Subject: [PATCH 2/2] Clarify -force-device-index should be used over -gpu --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67ba212..8468db0 100644 --- a/README.md +++ b/README.md @@ -75,5 +75,5 @@ The Flatpak sets `PrefersNonDefaultGPU=true` [in the desktop file](https://githu the dedicated GPU because it seems to enumerate and select a GPU manually. If you have a hybrid GPU system, this might cause the editor to always run on the dedicated GPU, which might be what you want but in some cases might not. -To override this, in the Hub you can right-click your project and use 'Add command line arguments' to add e.g. `-gpu 0` -or `-gpu 1` to select between available GPUs. +To override this, in the Hub you can right-click your project and use 'Add command line arguments' to add e.g. `-force-device-index 0` +or `-force-device-index 1` to select between available GPUs. [See also the documentation.](https://docs.unity3d.com/Manual/PlayerCommandLineArguments.html)