summaryrefslogtreecommitdiff
path: root/mknes.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-28 22:19:43 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-28 22:19:43 +0200
commite08b851c79ae9a7fc0a2066e49110dc7fb426bce (patch)
treec8458daee7201983903cf04413ff9a6072084028 /mknes.c
parentc40f7421d8c1ccbe008dbd2191c6642625ae4b83 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mknes.c b/mknes.c
index a365ddb..beceef6 100644
--- a/mknes.c
+++ b/mknes.c
@@ -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");