Linkgraph overlay: Skip refresh if periodic cache rebuild has no changes

This commit is contained in:
Jonathan G Rennison
2024-01-22 01:34:37 +00:00
parent a40aa5e5b8
commit 423877374b
3 changed files with 34 additions and 2 deletions

View File

@@ -271,8 +271,9 @@ struct MainWindow : Window
return;
}
this->viewport->overlay->SetDirty();
this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this);
if (this->viewport->overlay->RebuildCacheCheckCahnged()) {
this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this);
}
}
void OnPaint() override