mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Don't try to draw GPU zones with no timing data.
This commit is contained in:
parent
334224dd36
commit
1445341068
@ -2406,6 +2406,7 @@ int View::DrawGpuZoneLevel( const Vector<GpuEvent*>& vec, bool hover, double pxn
|
|||||||
auto& srcloc = GetSourceLocation( ev.srcloc );
|
auto& srcloc = GetSourceLocation( ev.srcloc );
|
||||||
const auto color = GetZoneColor( ev );
|
const auto color = GetZoneColor( ev );
|
||||||
const auto end = GetZoneEnd( ev );
|
const auto end = GetZoneEnd( ev );
|
||||||
|
if( end == std::numeric_limits<int64_t>::max() ) break;
|
||||||
const auto zsz = ( end - ev.gpuStart ) * pxns;
|
const auto zsz = ( end - ev.gpuStart ) * pxns;
|
||||||
if( zsz < MinVisSize )
|
if( zsz < MinVisSize )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user