mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +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 )
|
while( it < itend )
|
||||||
{
|
{
|
||||||
bool visible = true;
|
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;
|
double px1;
|
||||||
auto next = it+1;
|
auto next = it+1;
|
||||||
uint32_t num = 0;
|
uint32_t num = 0;
|
||||||
@ -577,7 +578,7 @@ void TimelineItemThread::PreprocessSamples( const TimelineContext& ctx, const Ve
|
|||||||
{
|
{
|
||||||
const auto MinVisNs = MinVis * nspx;
|
const auto MinVisNs = MinVis * nspx;
|
||||||
visible = false;
|
visible = false;
|
||||||
auto nextTime = px0 + MinVisNs;
|
auto nextTime = t0 + MinVisNs;
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
const auto prev = next;
|
const auto prev = next;
|
||||||
|
Loading…
Reference in New Issue
Block a user