all repos — mgba @ 2d303cdda314c48a9534fef04782f8ad2bf2ca6a

mGBA Game Boy Advance Emulator

GBA Video: Remove redundant checks
Vicki Pfau vi@endrift.com
Sat, 26 Jan 2019 22:38:47 -0800
commit

2d303cdda314c48a9534fef04782f8ad2bf2ca6a

parent

8106c99c2ecd0bdc1d3afc25279f5c6d17511547

1 files changed, 0 insertions(+), 6 deletions(-)

jump to
M src/gba/renderers/software-obj.csrc/gba/renderers/software-obj.c

@@ -27,9 +27,6 @@ outX += mosaicH - (outX % mosaicH); \

} \ } \ for (; outX < condition; ++outX, inX += xOffset) { \ - if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \ - continue; \ - } \ int localX = inX - xOffset * (outX % mosaicH); \ if (localX < 0 || localX > width - 1) { \ continue; \

@@ -43,9 +40,6 @@ unsigned tileData; \

unsigned widthMask = ~(width - 1); \ unsigned heightMask = ~(height - 1); \ for (; outX < condition; ++outX, ++inX) { \ - if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \ - continue; \ - } \ renderer->spriteCyclesRemaining -= 2; \ xAccum += mat.a; \ yAccum += mat.c; \