From b96b3fe1d46f54751ad610ef5418f64e4e288e30 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Fri, 2 Jan 2015 21:28:01 -0800 Subject: [PATCH] Optimization: replace slow VideoGetVbl() with fast NTSC_VideoIsVbl() --- source/Video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Video.cpp b/source/Video.cpp index 80486c0a..9332039e 100644 --- a/source/Video.cpp +++ b/source/Video.cpp @@ -897,8 +897,8 @@ BYTE VideoCheckMode (WORD, WORD address, BYTE, BYTE, ULONG uExecutedCycles) BYTE VideoCheckVbl (WORD, WORD, BYTE, BYTE, ULONG uExecutedCycles) { - bool bVblBar = VideoGetVbl(uExecutedCycles); - //bool bVblBar = NTSC_VideoIsVbl(); + //bool bVblBar = VideoGetVbl(uExecutedCycles); + bool bVblBar = NTSC_VideoIsVbl(); BYTE r = KeybGetKeycode(); return (r & ~0x80) | (bVblBar ? 0x80 : 0);