From 55b2e74daca8c50e241fa5776f7e0ea0328afcc9 Mon Sep 17 00:00:00 2001 From: goyuken Date: Thu, 4 Oct 2012 19:59:39 +0000 Subject: [PATCH] SNESGraphicsDebugger: don't process hooks when form is not visible. fixes significant snes speed regression in r3300 --- BizHawk.MultiClient/SNESTools/SNESGraphicsDebugger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.MultiClient/SNESTools/SNESGraphicsDebugger.cs b/BizHawk.MultiClient/SNESTools/SNESGraphicsDebugger.cs index a317fd2ff8..e5dafa8eb9 100644 --- a/BizHawk.MultiClient/SNESTools/SNESGraphicsDebugger.cs +++ b/BizHawk.MultiClient/SNESTools/SNESGraphicsDebugger.cs @@ -83,7 +83,7 @@ namespace BizHawk.MultiClient public void UpdateToolsAfter() { SyncCore(); - if (!checkScanlineControl.Checked) + if (this.Visible && !checkScanlineControl.Checked) { RegenerateData(); UpdateValues(); @@ -126,7 +126,7 @@ namespace BizHawk.MultiClient if (currentSnesCore != null) { - if (checkScanlineControl.Checked) + if (this.Visible && checkScanlineControl.Checked) currentSnesCore.ScanlineHookManager.Register(this, ScanlineHook); else currentSnesCore.ScanlineHookManager.Unregister(this);