From 9eafac83d43d9e5d06c96358c652619c925317f3 Mon Sep 17 00:00:00 2001 From: Meerkov Date: Thu, 29 Sep 2016 00:57:32 -0700 Subject: [PATCH] Improve Absolute Zero Mode by 15-30% Short-circuits out of the Render function in the main program loop. With an NES game running at 8500 FPS before, this brings it to 9700 FPS. With no game loaded, running at 45k FPS, this brings it to 60k FPS. --- BizHawk.Client.EmuHawk/MainForm.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 08ae92eccf..95ef63e6eb 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -1906,6 +1906,10 @@ namespace BizHawk.Client.EmuHawk private void Render() { + if (Global.Config.DispSpeedupFeatures == 0) + { + return; + } //private Size _lastVideoSize = new Size(-1, -1), _lastVirtualSize = new Size(-1, -1); var video = Global.Emulator.VideoProvider(); //bool change = false;