Core(SceneViewport) - Disable renderUpdate when not visible

This commit is contained in:
miku-666
2025-11-26 10:11:46 +01:00
parent f9f8b32f7f
commit abeb148022

View File

@@ -155,6 +155,16 @@ namespace PckStudio.Rendering
InitializeInternal();
}
}
protected override void OnVisibleChanged(EventArgs e)
{
base.OnVisibleChanged(e);
if (DesignMode)
return;
if (!Visible)
_timer.Stop();
if (Visible)
_timer.Start();
}
private void InitializeInternal()