Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
BG Cache only monitors relevant tile data (instead of always 64x64 ti…
Browse files Browse the repository at this point in the history
…les)
  • Loading branch information
Michael Kelly authored and Michael Kelly committed Apr 10, 2011
1 parent e4626ba commit dbedc3a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/edu/fit/cs/sno/snes/ppu/Background.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,16 @@ public String toString() {
@Override
public int[] getRange() {
int tmaStart = tileMapAddress;
int tmaEnd = tmaStart + 0x2000;// Assume they take a 64x64map
int tmaEnd = tmaStart + 0x800;
switch (size) {
case bg64x32:
case bg32x64:
tmaEnd += 0x800;
break;
case bg64x64:
tmaEnd += 0x1800;
break;
}

int baStart = baseAddress;
int baEnd = baStart + 1024*8*colorMode.bitDepth;
Expand Down

0 comments on commit dbedc3a

Please sign in to comment.