mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Simplify loop.
This commit is contained in:
parent
f41834370c
commit
344d36086f
@ -3806,18 +3806,13 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl
|
||||
assert( sz <= MaxPoints*2 );
|
||||
|
||||
auto dst = tmpvec;
|
||||
for(;;)
|
||||
const auto rsz = std::distance( it, range );
|
||||
const auto ssz = rsz / skip1;
|
||||
for( int64_t i=0; i<ssz; i++ )
|
||||
{
|
||||
*dst++ = float( it->val );
|
||||
if( std::distance( it, range ) > skip1 )
|
||||
{
|
||||
it += skip1;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
pdqsort_branchless( tmpvec, dst );
|
||||
|
||||
if( rsz > MaxPoints )
|
||||
|
Loading…
Reference in New Issue
Block a user