ColecoHawk - hook up frame and lag counters
This commit is contained in:
parent
94475aa9a7
commit
b7f9a99250
|
@ -47,9 +47,14 @@ namespace BizHawk.Emulation.Consoles.Coleco
|
||||||
|
|
||||||
public void FrameAdvance(bool render, bool renderSound)
|
public void FrameAdvance(bool render, bool renderSound)
|
||||||
{
|
{
|
||||||
|
Frame++;
|
||||||
|
IsLagFrame = true;
|
||||||
PSG.BeginFrame(Cpu.TotalExecutedCycles);
|
PSG.BeginFrame(Cpu.TotalExecutedCycles);
|
||||||
VDP.ExecuteFrame();
|
VDP.ExecuteFrame();
|
||||||
PSG.EndFrame(Cpu.TotalExecutedCycles);
|
PSG.EndFrame(Cpu.TotalExecutedCycles);
|
||||||
|
|
||||||
|
if (IsLagFrame)
|
||||||
|
LagCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadRom(byte[] rom)
|
void LoadRom(byte[] rom)
|
||||||
|
|
Loading…
Reference in New Issue