Optimization: replace slow VideoGetVbl() with fast NTSC_VideoIsVbl()
This commit is contained in:
parent
f36073beb5
commit
b96b3fe1d4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue