1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Fix MinVisNs type in messages preprocessing.

This commit is contained in:
Bartosz Taudul 2023-03-24 23:15:11 +01:00
parent b3e9ede557
commit 734753a941
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -585,7 +585,7 @@ void TimelineItemThread::PreprocessMessages( const TimelineContext& ctx, const V
const auto vEnd = ctx.vEnd;
const auto nspx = ctx.nspx;
const auto MinVisNs = MinVisSize * nspx;
const auto MinVisNs = int64_t( round( GetScale() * MinVisSize * nspx ) );
auto it = std::lower_bound( vec.begin(), vec.end(), vStart, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } );
if( it == vec.end() ) return;