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:
andres.delikat 2011-08-27 14:56:17 +00:00
parent 8dff368bcc
commit 1f3a315926
3 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

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