1 parent 35c7d47 commit 8d28601Copy full SHA for 8d28601
1 file changed
justfile
@@ -11,8 +11,13 @@ build: configure
11
cmake --build build -- -j$(nproc)
12
13
# Run the game/application with optional config
14
+# Runs the game using the dedicated Nvidia/AMD GPU
15
[default]
16
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
21
./bin/GAME_APPLICATION {{ if config != "" { "-c " + config } else { "" } }}
22
23
# Package the project using Nix
0 commit comments