mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Implement skipping frame image data.
This commit is contained in:
parent
8c494eabbf
commit
1c937ad9bb
@ -1128,7 +1128,16 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
}
|
||||
else
|
||||
{
|
||||
// Implement skip, if more data is added after frame image section
|
||||
f.Read( sz );
|
||||
s_loadProgress.subTotal.store( sz, std::memory_order_relaxed );
|
||||
for( uint64_t i=0; i<sz; i++ )
|
||||
{
|
||||
s_loadProgress.subProgress.store( i, std::memory_order_relaxed );
|
||||
uint16_t w, h;
|
||||
f.Read2( w, h );
|
||||
const auto sz = w * h / 2;
|
||||
f.Skip( sz + 1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user