Process multiple broadcast messages in a single frame.

This commit is contained in:
Bartosz Taudul 2020-09-20 22:08:34 +02:00
parent 0814812e9b
commit 6eaf0b06fd

View File

@ -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 );