mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Denote updates to prevent wasteful repeated work adding usage entries
This commit is contained in:
@@ -234,6 +234,8 @@ void ResourceInspector::Inspect(ResourceId id)
|
||||
ui->viewContents->setVisible(true);
|
||||
}
|
||||
|
||||
ui->resourceUsage->beginUpdate();
|
||||
|
||||
CombineUsageEvents(m_Ctx, usage, [this](uint32_t startEID, uint32_t endEID, ResourceUsage use) {
|
||||
QString text;
|
||||
|
||||
@@ -249,6 +251,8 @@ void ResourceInspector::Inspect(ResourceId id)
|
||||
|
||||
ui->resourceUsage->addTopLevelItem(item);
|
||||
});
|
||||
|
||||
ui->resourceUsage->endUpdate();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user