mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +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( !visible ) return;
|
||||||
if( yPos > ctx.yMax ) return;
|
if( yPos > ctx.yMax ) return;
|
||||||
|
if( m_plot->data.empty() ) return;
|
||||||
const auto PlotHeight = int( round( PlotHeightPx * GetScale() ) );
|
const auto PlotHeight = int( round( PlotHeightPx * GetScale() ) );
|
||||||
if( yPos + PlotHeight < ctx.yMin ) return;
|
if( yPos + PlotHeight < ctx.yMin ) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user