From f74b350f93df42196525fe8caffed671ef0a45c1 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Fri, 10 Dec 2021 05:07:39 +0000 Subject: [PATCH] Apple: wait for ~16 seconds for application launch On Apple Silicon it can take ~10 seconds for the OS to launch an Intel x64 process. The Intel executable is translated on launch using Rosetta. --- renderdoc/os/posix/apple/apple_process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/posix/apple/apple_process.cpp b/renderdoc/os/posix/apple/apple_process.cpp index 3e3eb2553..68760ac6a 100644 --- a/renderdoc/os/posix/apple/apple_process.cpp +++ b/renderdoc/os/posix/apple/apple_process.cpp @@ -68,8 +68,8 @@ int GetIdentPort(pid_t childPid) rdcstr lsof = StringFormat::Fmt("lsof -p %d -a -i 4 -F n", (int)childPid); rdcstr result; uint32_t wait = 1; - // Wait for a maximum of ~8 seconds - for(int i = 0; i < 13; ++i) + // Wait for a maximum of ~16 seconds + for(int i = 0; i < 14; ++i) { result = execcmd(lsof.c_str()); if(!result.empty())