ZXHawk: fixed render bool implementation (frameskip)

This commit is contained in:
Asnivor 2018-06-14 14:51:13 +01:00
parent 3e495e3a28
commit 6476b6739a
2 changed files with 2 additions and 5 deletions

View File

@ -183,10 +183,6 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
// we have reached the end of a frame
LastFrameStartCPUTick = CPU.TotalExecutedCycles - OverFlow;
// paint the buffer at end of frame
if (_render)
ULADevice.RenderScreen(ULADevice.FrameLength);
ULADevice.LastTState = 0;
if (AYDevice != null)

View File

@ -141,7 +141,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
public virtual void CycleClock(long totalCycles)
{
// render the screen
RenderScreen((int)_machine.CurrentFrameCycle);
if (_machine._render)
RenderScreen((int)_machine.CurrentFrameCycle);
// has more than one cycle past since this last ran
// (this can be true if contention has taken place)