Skip to content

Commit 38bbf3f

Browse files
authored
Add forceAdapter option to GameLauncher command
1 parent 4fd12f2 commit 38bbf3f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

manager/manager/launcher/launcher_o3de_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ def run(self, callback):
4545
self.display, self.internal_port, self.external_port, DRI_PATH
4646
)
4747
# Write display config
48-
o3decmd = f"export DISPLAY={self.display}; data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher"
48+
o3decmd = f'export DISPLAY={self.display}; data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher --forceAdapter="NVIDIA"'
4949
else:
5050
# Starts xserver, x11vnc and novnc
5151
self.gz_vnc.start_vnc(self.display, self.internal_port, self.external_port)
5252
# Write display config
53-
o3decmd = f"export DISPLAY={self.display}; data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher"
53+
o3decmd = f'export DISPLAY={self.display}; data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher --forceAdapter="NVIDIA"'
5454

5555
gzclient_thread = DockerThread(o3decmd)
5656
gzclient_thread.start()
5757
self.threads.append(gzclient_thread)
5858

59-
process_name = "data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher"
59+
process_name = 'data/workspace/ROS2Demo/build/linux/bin/profile/ROS2Demo.GameLauncher --forceAdapter="NVIDIA"'
6060
wait_for_process_to_start(process_name, timeout=360)
6161

6262
def terminate(self):

0 commit comments

Comments
 (0)