Skip to content

Commit 8d28601

Browse files
committed
chore: add hints for using dedicated GPU and a another secondary command for integrated
1 parent 35c7d47 commit 8d28601

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ build: configure
1111
cmake --build build -- -j$(nproc)
1212

1313
# Run the game/application with optional config
14+
# Runs the game using the dedicated Nvidia/AMD GPU
1415
[default]
1516
run config="": build
17+
DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./bin/GAME_APPLICATION {{ if config != "" { "-c " + config } else { "" } }}
18+
19+
# Run the game/application on the integrated GPU for testing/sanity checks
20+
run-int config="": build
1621
./bin/GAME_APPLICATION {{ if config != "" { "-c " + config } else { "" } }}
1722

1823
# Package the project using Nix

0 commit comments

Comments
 (0)