public bool FrameAdvance(IController controller, bool render, bool renderSound) { _controller = controller; _lagged = true; DriveLightOn = false; CheckSpriteLimit(); PSG.BeginFrame(Cpu.TotalExecutedCycles); Cpu.Debug = Tracer.IsEnabled(); if (SuperGrafx) { VPC.ExecFrame(render); } else { VDC1.ExecFrame(render); } PSG.EndFrame(Cpu.TotalExecutedCycles); if (_lagged) { _lagCount++; _isLag = true; } else { _isLag = false; } Frame++; return(true); }
public void FrameAdvance(bool render, bool rendersound) { _lagged = true; DriveLightOn = false; Frame++; CheckSpriteLimit(); PSG.BeginFrame(Cpu.TotalExecutedCycles); Cpu.Debug = Tracer.Enabled; if (SuperGrafx) { VPC.ExecFrame(render); } else { VDC1.ExecFrame(render); } PSG.EndFrame(Cpu.TotalExecutedCycles); if (_lagged) { _lagCount++; _isLag = true; } else { _isLag = false; } }