GBHawk: correct frame rate to 59.72 (same as gambatte)

This commit is contained in:
alyosha-tas 2020-01-14 18:32:26 -05:00
parent 8da1bb4e73
commit 3f59a704a2
5 changed files with 8 additions and 18 deletions

View File

@ -285,8 +285,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
#region Video provider
public int _frameHz = 60;
public int[] _vidbuffer;
public int[] frame_buffer;
@ -328,8 +326,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
public int BufferWidth => 160;
public int BufferHeight => 144;
public int BackgroundColor => unchecked((int)0xFF000000);
public int VsyncNumerator => _frameHz;
public int VsyncDenominator => 1;
public int VsyncNumerator => 262144;
public int VsyncDenominator => 4389;
public static readonly uint[] color_palette_BW = { 0xFFFFFFFF , 0xFFAAAAAA, 0xFF555555, 0xFF000000 };
public static readonly uint[] color_palette_Gr = { 0xFFA4C505, 0xFF88A905, 0xFF1D551D, 0xFF052505 };

View File

@ -174,8 +174,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
_rom = rom;
Setup_Mapper();
_frameHz = 60;
timer.Core = this;
audio.Core = this;
ppu.Core = this;

View File

@ -231,8 +231,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
#region Video provider
public int _frameHz = 60;
public int[] _vidbuffer = new int[160 * 2 * 144];
public int[] GetVideoBuffer()
@ -284,8 +282,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink
public int BufferHeight => 144;
public int BackgroundColor => unchecked((int)0xFF000000);
public int VsyncNumerator => _frameHz;
public int VsyncDenominator => 1;
public int VsyncNumerator => 262144;
public int VsyncDenominator => 4389;
public static readonly uint[] color_palette_BW = { 0xFFFFFFFF , 0xFFAAAAAA, 0xFF555555, 0xFF000000 };
public static readonly uint[] color_palette_Gr = { 0xFFA4C505, 0xFF88A905, 0xFF1D551D, 0xFF052505 };

View File

@ -416,8 +416,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
#region Video provider
public int _frameHz = 60;
public int[] _vidbuffer = new int[160 * 2 * 144 * 2];
public int[] GetVideoBuffer()
@ -444,8 +442,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x
public int BufferWidth => 160 * 2;
public int BufferHeight => 144 * 2;
public int BackgroundColor => unchecked((int)0xFF000000);
public int VsyncNumerator => _frameHz;
public int VsyncDenominator => 1;
public int VsyncNumerator => 262144;
public int VsyncDenominator => 4389;
public static readonly uint[] color_palette_BW = { 0xFFFFFFFF , 0xFFAAAAAA, 0xFF555555, 0xFF000000 };
public static readonly uint[] color_palette_Gr = { 0xFFA4C505, 0xFF88A905, 0xFF1D551D, 0xFF052505 };

View File

@ -567,8 +567,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
#region Video provider
public int _frameHz = 60;
public int[] _vidbuffer = new int[160 * 2 * 144 * 2];
public int[] GetVideoBuffer()
@ -596,8 +594,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink4x
public int BufferWidth => 160 * 2;
public int BufferHeight => 144 * 2;
public int BackgroundColor => unchecked((int)0xFF000000);
public int VsyncNumerator => _frameHz;
public int VsyncDenominator => 1;
public int VsyncNumerator => 262144;
public int VsyncDenominator => 4389;
public static readonly uint[] color_palette_BW = { 0xFFFFFFFF , 0xFFAAAAAA, 0xFF555555, 0xFF000000 };
public static readonly uint[] color_palette_Gr = { 0xFFA4C505, 0xFF88A905, 0xFF1D551D, 0xFF052505 };