Commit 7b12436
Fix running server and GUI together on macOS (#3405)
On macOS the Metal API requires initialization from the main thread. As a result, we currently cannot run worlds with rendering sensors on macOS without running the server and GUI seprately. This PR fixes this be ensuring the server runs on the main thread (using the blocking=true flag on Server::Run) and creating a separate thread to monitor the GUI process.
Generated-By: Gemini 2.5 Pro
Signed-off-by: Addisu Z. Taddese <addisuzt@intrinsic.ai>
Co-authored-by: Arjo Chakravarty <arjoc@intrinsic.ai>
(cherry picked from commit 7dd25f6)1 parent 21c17dd commit 7b12436
1 file changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | 486 | | |
489 | 487 | | |
490 | | - | |
491 | 488 | | |
492 | 489 | | |
493 | 490 | | |
| |||
525 | 522 | | |
526 | 523 | | |
527 | 524 | | |
528 | | - | |
529 | 525 | | |
530 | | - | |
531 | 526 | | |
532 | 527 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
536 | 533 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
542 | 546 | | |
543 | 547 | | |
544 | 548 | | |
| |||
0 commit comments