mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 01:00:54 +00:00
Guarantee forward progress in the plot preprocess loop.
This commit is contained in:
@@ -199,7 +199,7 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td,
|
||||
while( it < end )
|
||||
{
|
||||
auto next = std::upper_bound( it, end, int64_t( it->time.Val() + MinVisNs ), [] ( const auto& l, const auto& r ) { return l < r.time.Val(); } );
|
||||
assert( next > it );
|
||||
if( next <= it ) next = it + 1;
|
||||
const auto rsz = uint32_t( next - it );
|
||||
if( rsz < 4 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user