NES Nametableviewer & NESPPU viewer were running their updatevalues code when closed. Fixing that gave a few fps boost to the nes core when those dialogs are not open!
This commit is contained in:
parent
8dff368bcc
commit
1f3a315926
|
@ -100,6 +100,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public void UpdateValues()
|
||||
{
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
if (!(Global.Emulator is NES)) return;
|
||||
NES.PPU ppu = (Global.Emulator as NES).ppu;
|
||||
ppu.NTViewCallback = Callback;
|
||||
|
|
|
@ -147,6 +147,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public unsafe void UpdateValues()
|
||||
{
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
if (!(Global.Emulator is NES)) return;
|
||||
NES.PPU ppu = (Global.Emulator as NES).ppu;
|
||||
ppu.PPUViewCallback = Callback;
|
||||
|
|
|
@ -46,8 +46,8 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public void UpdateValues()
|
||||
{
|
||||
TASView.BlazingFast = true;
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
TASView.BlazingFast = true;
|
||||
if (Global.MainForm.UserMovie.Mode == MOVIEMODE.INACTIVE)
|
||||
TASView.ItemCount = 0;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue