mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix pixel and nanosecond domain mixing.
This commit is contained in:
parent
80c15c0f9b
commit
83ae9868e2
@ -565,7 +565,8 @@ void TimelineItemThread::PreprocessSamples( const TimelineContext& ctx, const Ve
|
||||
while( it < itend )
|
||||
{
|
||||
bool visible = true;
|
||||
const auto px0 = ( it->time.Val() - vStart ) * pxns;
|
||||
const auto t0 = it->time.Val();
|
||||
const auto px0 = ( t0 - vStart ) * pxns;
|
||||
double px1;
|
||||
auto next = it+1;
|
||||
uint32_t num = 0;
|
||||
@ -577,7 +578,7 @@ void TimelineItemThread::PreprocessSamples( const TimelineContext& ctx, const Ve
|
||||
{
|
||||
const auto MinVisNs = MinVis * nspx;
|
||||
visible = false;
|
||||
auto nextTime = px0 + MinVisNs;
|
||||
auto nextTime = t0 + MinVisNs;
|
||||
for(;;)
|
||||
{
|
||||
const auto prev = next;
|
||||
|
Loading…
Reference in New Issue
Block a user