mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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;
|
tracy::IpAddress addr;
|
||||||
size_t len;
|
size_t len;
|
||||||
auto msg = broadcastListen->Read( len, addr, 0 );
|
for(;;)
|
||||||
if( msg )
|
|
||||||
{
|
{
|
||||||
|
auto msg = broadcastListen->Read( len, addr, 0 );
|
||||||
|
if( !msg ) break;
|
||||||
assert( len <= sizeof( tracy::BroadcastMessage ) );
|
assert( len <= sizeof( tracy::BroadcastMessage ) );
|
||||||
tracy::BroadcastMessage bm;
|
tracy::BroadcastMessage bm;
|
||||||
memcpy( &bm, msg, len );
|
memcpy( &bm, msg, len );
|
||||||
|
Loading…
Reference in New Issue
Block a user