cap nullemulator to <=200fps

realistically, about 160-165fps for me
This commit is contained in:
nattthebear 2020-05-23 11:21:53 -04:00
parent a1ce5e514c
commit 815d49bd63
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common
using System.Threading;
namespace BizHawk.Emulation.Common
{
[Core("NullHawk", "", false, true)]
[ServiceNotApplicable(new[] {
@ -28,7 +30,13 @@
public ControllerDefinition ControllerDefinition => NullController.Instance.Definition;
public bool FrameAdvance(IController controller, bool render, bool renderSound) => true;
public bool FrameAdvance(IController controller, bool render, bool renderSound)
{
// real cores wouldn't do something like this, but this just keeps speed reasonable
// if all throttles are off
Thread.Sleep(5);
return true;
}
public int Frame => 0;