From 6eaf0b06fd7c5e13bdda03d88526d9f63a19699b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Sep 2020 22:08:34 +0200 Subject: [PATCH] Process multiple broadcast messages in a single frame. --- profiler/src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 4b991274..2a3f1343 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -505,9 +505,10 @@ static void DrawContents() { tracy::IpAddress addr; size_t len; - auto msg = broadcastListen->Read( len, addr, 0 ); - if( msg ) + for(;;) { + auto msg = broadcastListen->Read( len, addr, 0 ); + if( !msg ) break; assert( len <= sizeof( tracy::BroadcastMessage ) ); tracy::BroadcastMessage bm; memcpy( &bm, msg, len );