mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Early exit on empty plots.
This commit is contained in:
parent
6aa9169901
commit
72b1ff6477
@ -125,6 +125,7 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td,
|
||||
|
||||
if( !visible ) return;
|
||||
if( yPos > ctx.yMax ) return;
|
||||
if( m_plot->data.empty() ) return;
|
||||
const auto PlotHeight = int( round( PlotHeightPx * GetScale() ) );
|
||||
if( yPos + PlotHeight < ctx.yMin ) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user