Linkgraph overlay: Skip refresh if periodic cache rebuild has no changes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user