diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-04-28 22:19:43 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-04-28 22:19:43 +0200 |
| commit | e08b851c79ae9a7fc0a2066e49110dc7fb426bce (patch) | |
| tree | c8458daee7201983903cf04413ff9a6072084028 /mknes.c | |
| parent | c40f7421d8c1ccbe008dbd2191c6642625ae4b83 (diff) | |
reverted rewrite of ppu, optimized what functions should be forced inline, gained ~2.5% performance
Diffstat (limited to 'mknes.c')
| -rw-r--r-- | mknes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -90,7 +90,7 @@ static GLFWwindow *window; #include "render.c" static uint32_t frames; // debug information -#include "smb_tas.h" // REMOVE ME +// #include "smb_tas.h" // REMOVE ME // NES core #include "mapper.h" @@ -224,7 +224,7 @@ int main(int argc, char **argv) { uint32_t hi = nstate->mapper.prg_read(nstate, 0xfffd); nstate->cpu.pc = (hi << 8) | lo; -#if 0 +#if 1 for(uint32_t i = 0; i < 0x5000; ++ i) { while(!nstate->ppu.frame_ready) { // PROFILE_NAMED("nes emulator"); |
