SNESGraphicsDebugger: don't process hooks when form is not visible. fixes significant snes speed regression in r3300

This commit is contained in:
goyuken 2012-10-04 19:59:39 +00:00
parent 909ccef52f
commit 55b2e74dac
1 changed files with 2 additions and 2 deletions

View File

@ -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);