mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Simplify loop.
This commit is contained in:
parent
f41834370c
commit
344d36086f
@ -3806,17 +3806,12 @@ 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;
|
||||
}
|
||||
it += skip1;
|
||||
}
|
||||
pdqsort_branchless( tmpvec, dst );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user