Skip to content

Commit

Permalink
[GB] Fix slowdown on some GB titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
OtherCrashOverride committed Jul 10, 2018
1 parent 4cb5966 commit 8dac202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnuboy-go/components/gnuboy/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,18 @@ void IRAM_ATTR ioreg_write(byte r, byte b)
REG(r) = b;
break;
case RI_BGP:
//if (R_BGP == b) break;
if (R_BGP == b) break;
pal_write_dmg(0, 0, b);
pal_write_dmg(8, 1, b);
R_BGP = b;
break;
case RI_OBP0:
//if (R_OBP0 == b) break;
if (R_OBP0 == b) break;
pal_write_dmg(64, 2, b);
R_OBP0 = b;
break;
case RI_OBP1:
//if (R_OBP1 == b) break;
if (R_OBP1 == b) break;
pal_write_dmg(72, 3, b);
R_OBP1 = b;
break;
Expand Down

0 comments on commit 8dac202

Please sign in to comment.