public void StartFrame() { WSYNCDelayClocks = 0; EndOfFrame = false; ScanLine = 0; FrameBufferIndex %= 160; RenderFromStartClockTo(Clock); TIASound.StartFrame(); }
public void StartFrame() { _startOfFrameCpuClock = M.CPU.Clock + (ulong)(M.CPU.RunClocks / M.CPU.RunClocksMultiple); _lightgunFirstSampleCpuClock = 0; AssertDebug(M.CPU.RunClocks <= 0 && (M.CPU.RunClocks % M.CPU.RunClocksMultiple) == 0); AssertDebug((_startOfFrameCpuClock % (114 * (ulong)M.FrameBuffer.Scanlines)) == 0); TIASound.StartFrame(); }