aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 450a3cb..1dc5b5f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -64,16 +64,21 @@
64// txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+3);\ 64// txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+3);\
65// txt_printf("MIX: %lu ", mix_cycles);\ 65// txt_printf("MIX: %lu ", mix_cycles);\
66// } while (0) 66// } while (0)
67// #define PROF_SHOW() \
68// do { \
69// txt_position((PROF_SHOW_X), (PROF_SHOW_Y));\
70// txt_printf("PIX: %lu ", ppu_pixel_cycles);\
71// txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+1);\
72// txt_printf("1BPP: %lu ", ppu_icn_cycles);\
73// txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+2);\
74// txt_printf("2BPP: %lu ", ppu_chr_cycles);\
75// txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+3);\
76// txt_printf("FLIP: %lu ", flip_cycles);\
77// } while (0)
67#define PROF_SHOW() \ 78#define PROF_SHOW() \
68 do { \ 79 do { \
69 txt_position((PROF_SHOW_X), (PROF_SHOW_Y));\ 80 txt_position((PROF_SHOW_X), (PROF_SHOW_Y));\
70 txt_printf("PIX: %lu ", ppu_pixel_cycles);\ 81 txt_printf("1BPP: %lu 2BPP: %lu", ppu_icn_cycles, ppu_chr_cycles);\
71 txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+1);\
72 txt_printf("1BPP: %lu ", ppu_icn_cycles);\
73 txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+2);\
74 txt_printf("2BPP: %lu ", ppu_chr_cycles);\
75 txt_position((PROF_SHOW_X), (PROF_SHOW_Y)+3);\
76 txt_printf("FLIP: %lu ", flip_cycles);\
77 } while (0) 82 } while (0)
78#define PROF_INIT() \ 83#define PROF_INIT() \
79 static u32 ppu_pixel_cycles = 0;\ 84 static u32 ppu_pixel_cycles = 0;\