mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Discard scratch buffer tricks for better performance.
This commit is contained in:
parent
f3bb4030f6
commit
00ab76fa19
@ -5179,10 +5179,8 @@ void Worker::ReadTimeline( FileRead& f, Vector<short_ptr<ZoneEvent>>& _vec, uint
|
||||
int16_t srcloc;
|
||||
f.Read( srcloc );
|
||||
zone->SetSrcLoc( srcloc );
|
||||
// Use zone->_end_child1 as scratch buffer for zone start time offset.
|
||||
f.Read( &zone->_end_child1, sizeof( zone->_end_child1 ) + sizeof( zone->extra ) );
|
||||
refTime += int64_t( zone->_end_child1 );
|
||||
zone->SetStart( refTime );
|
||||
zone->SetStart( ReadTimeOffset( f, refTime ) );
|
||||
f.Read( zone->extra );
|
||||
ReadTimeline( f, zone, refTime, childIdx );
|
||||
zone->SetEnd( ReadTimeOffset( f, refTime ) );
|
||||
#ifdef TRACY_NO_STATISTICS
|
||||
|
Loading…
x
Reference in New Issue
Block a user