mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Process multiple broadcast messages in a single frame.
This commit is contained in:
parent
0814812e9b
commit
6eaf0b06fd
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user