-add tracy client address flag

This commit is contained in:
Alex 2023-12-11 15:16:41 -08:00
parent 9bc014b183
commit 1e6f877777

View File

@ -1731,6 +1731,8 @@ void Profiler::Worker()
new(m_broadcast) UdpBroadcast(); new(m_broadcast) UdpBroadcast();
# ifdef TRACY_ONLY_LOCALHOST # ifdef TRACY_ONLY_LOCALHOST
const char* addr = "127.255.255.255"; const char* addr = "127.255.255.255";
# elif defined TRACY_CLIENT_ADDRESS
const char* addr = TRACY_CLIENT_ADDRESS;
# elif defined __QNX__ # elif defined __QNX__
// global broadcast address of 255.255.255.255 is not well-supported by QNX, // global broadcast address of 255.255.255.255 is not well-supported by QNX,
// use the interface broadcast address instead, e.g. "const char* addr = 192.168.1.255;" // use the interface broadcast address instead, e.g. "const char* addr = 192.168.1.255;"