SNESGraphicsDebugger: don't process hooks when form is not visible. fixes significant snes speed regression in r3300
This commit is contained in:
parent
909ccef52f
commit
55b2e74dac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue