From 19f119e49c91580f49bb02f86bb905a05ba90d6b Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Mon, 21 Apr 2025 14:06:43 +0200 Subject: back to 2560fps after wrangling the ppu_state into two cachelines --- ppu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ppu.c') diff --git a/ppu.c b/ppu.c index 7042b19..b34115c 100644 --- a/ppu.c +++ b/ppu.c @@ -397,6 +397,9 @@ static void ppu_tick(struct nes_state *state) { } if(UNLIKELY(scanline == 241) && dot == 1) { + // static int32_t tas_frame = 0; + // state->input[0] = tas_input[tas_frame++]; + ppu->reg_status |= 0x80; if(ppu->reg_ctrl & 0x80) { state->nmi_pending = 1; -- cgit v1.2.3