mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-27 15:25:36 +00:00
Core(SceneViewport) - Disable renderUpdate when not visible
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user