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()
|
public void UpdateToolsAfter()
|
||||||
{
|
{
|
||||||
SyncCore();
|
SyncCore();
|
||||||
if (!checkScanlineControl.Checked)
|
if (this.Visible && !checkScanlineControl.Checked)
|
||||||
{
|
{
|
||||||
RegenerateData();
|
RegenerateData();
|
||||||
UpdateValues();
|
UpdateValues();
|
||||||
|
@ -126,7 +126,7 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
if (currentSnesCore != null)
|
if (currentSnesCore != null)
|
||||||
{
|
{
|
||||||
if (checkScanlineControl.Checked)
|
if (this.Visible && checkScanlineControl.Checked)
|
||||||
currentSnesCore.ScanlineHookManager.Register(this, ScanlineHook);
|
currentSnesCore.ScanlineHookManager.Register(this, ScanlineHook);
|
||||||
else
|
else
|
||||||
currentSnesCore.ScanlineHookManager.Unregister(this);
|
currentSnesCore.ScanlineHookManager.Unregister(this);
|
||||||
|
|
Loading…
Reference in New Issue