summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-06 16:38:53 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-06 16:38:53 +0200
commit1372919415b23a9a596ca7211fd432328b2ac0cc (patch)
tree3a4d048606970e8aea670fed0f77486a1cffbbc4 /mknes.h
parent39715ca6bf65d2e2dd889cdef4b39d584464d9e7 (diff)
optimized away an if(dot == 256) in the hot path ~5% improvement
Diffstat (limited to 'mknes.h')
-rw-r--r--mknes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mknes.h b/mknes.h
index a296fe4..10ae358 100644
--- a/mknes.h
+++ b/mknes.h
@@ -62,7 +62,7 @@ struct ppu_state {
uint8_t sprite_zero_hit_possible;
uint8_t sprite_count;
-} __attribute__((packed, aligned(64)));
+} __attribute__((aligned(64)));
struct cpu_state {
uint32_t pc; // Program Counter
@@ -80,7 +80,7 @@ struct cpu_state {
uint8_t c; // Carry Flag
// --
uint8_t die; // KIL instruction found!
-} __attribute__((packed, aligned(64)));
+} __attribute__((aligned(64)));
struct ines_state {