mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Do not merge small groups of plot points (up to three).
This commit is contained in:
parent
616992a6d5
commit
96800a2753
@ -180,12 +180,15 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td,
|
|||||||
auto next = std::upper_bound( it, end, int64_t( it->time.Val() + MinVisNs ), [] ( const auto& l, const auto& r ) { return l < r.time.Val(); } );
|
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 );
|
assert( next > it );
|
||||||
const auto rsz = uint32_t( next - it );
|
const auto rsz = uint32_t( next - it );
|
||||||
if( rsz == 1 )
|
if( rsz < 4 )
|
||||||
|
{
|
||||||
|
for( int i=0; i<rsz; i++ )
|
||||||
{
|
{
|
||||||
m_draw.emplace_back( 0 );
|
m_draw.emplace_back( 0 );
|
||||||
m_draw.emplace_back( it - vec.begin() );
|
m_draw.emplace_back( it - vec.begin() );
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
constexpr int NumSamples = 1024;
|
constexpr int NumSamples = 1024;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user