Skip to content

Commit ccf09a5

Browse files
committed
Draw sprites over sprite limit
1 parent 5241d96 commit ccf09a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/emulator/src/ppu.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use bitflags::bitflags;
22

33
use crate::carts::Cart;
44

5+
const SPRITE_LIMIT: bool = false;
6+
57
#[derive(Clone, Copy)]
68
pub struct PpuCtrl(u8);
79

@@ -371,7 +373,10 @@ impl Ppu {
371373
if (0..sprite_h).contains(&diff) {
372374
if self.sprite_scanline.len() == 8 {
373375
self.ppustatus |= PpuStatus::SPRITE_OVERFLOW;
374-
break;
376+
377+
if SPRITE_LIMIT {
378+
break;
379+
}
375380
}
376381

377382
self.sprite_scanline.push([b0, b1, b2, b3]);

0 commit comments

Comments
 (0)