Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. `-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)