Skip to content

Commit

Permalink
downgrade ass to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Feb 1, 2024
1 parent 78288bc commit 3034875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yarge-core/src/ppu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ impl Ppu {
#[cfg(feature = "dbg-emit-ppu-events")] {
println!("PPU_EVENT PX_FETCH_LINE_END ly={} cycles={}", self.ly, self.cycles);
}
debug_assert!(self.fetched_sprites == self.oam_buffer.len(), "Fetched {} sprites out of {}", self.fetched_sprites, self.oam_buffer.len());
#[cfg(debug_assertions)]
if self.fetched_sprites != self.oam_buffer.len() {
eprintln!("Fetched {} sprites out of {}", self.fetched_sprites, self.oam_buffer.len());
}
debug_assert!(self.cycles >= 172, "PxTransfer took less then 172 cycles: {}", self.cycles);
debug_assert!(self.cycles <= 289, "PxTransfer took more then 289 cycles: {}", self.cycles);
self.fetched_sprites = 0;
Expand Down

0 comments on commit 3034875

Please sign in to comment.