mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Use float formatter for duration column in event browser
This commit is contained in:
@@ -311,7 +311,7 @@ void EventBrowser::SetDrawcallTimes(RDTreeWidgetItem *node,
|
||||
else if(m_TimeUnit == TimeUnit::Nanoseconds)
|
||||
secs *= 1000000000.0;
|
||||
|
||||
node->setText(COL_DURATION, duration < 0.0f ? QString() : QString::number(secs));
|
||||
node->setText(COL_DURATION, duration < 0.0f ? QString() : Formatter::Format(secs));
|
||||
EventItemTag tag = node->tag().value<EventItemTag>();
|
||||
tag.duration = duration;
|
||||
node->setTag(QVariant::fromValue(tag));
|
||||
@@ -338,7 +338,7 @@ void EventBrowser::SetDrawcallTimes(RDTreeWidgetItem *node,
|
||||
else if(m_TimeUnit == TimeUnit::Nanoseconds)
|
||||
secs *= 1000000000.0;
|
||||
|
||||
node->setText(COL_DURATION, duration < 0.0f ? QString() : QString::number(secs));
|
||||
node->setText(COL_DURATION, duration < 0.0f ? QString() : Formatter::Format(secs));
|
||||
EventItemTag tag = node->tag().value<EventItemTag>();
|
||||
tag.duration = duration;
|
||||
node->setTag(QVariant::fromValue(tag));
|
||||
|
||||
Reference in New Issue
Block a user