diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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;\ |