summaryrefslogtreecommitdiff
path: root/ppu_registers.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 /ppu_registers.c
parentc40f7421d8c1ccbe008dbd2191c6642625ae4b83 (diff)
reverted rewrite of ppu, optimized what functions should be forced inline, gained ~2.5% performance
Diffstat (limited to 'ppu_registers.c')
-rw-r--r--ppu_registers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppu_registers.c b/ppu_registers.c
index 1f738a1..c698bf2 100644
--- a/ppu_registers.c
+++ b/ppu_registers.c
@@ -113,8 +113,8 @@ static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) {
static uint8_t memory_read_dma(struct nes_state *state, uint32_t offset);
-__attribute__((always_inline, hot))
-static inline void ppu_dma_4014(struct nes_state *state, uint8_t page) {
+__attribute__((hot))
+static void ppu_dma_4014(struct nes_state *state, uint8_t page) {
uint32_t base = page << 8;
// Add 1 or 2 idle cycles depending on current CPU cycle