diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fc8fbd..369e200 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,7 @@ set(ASSETS_fx assets-fx/img/opt_libs_jui.png assets-fx/img/opt_main.png assets-fx/img/opt_mem.png + assets-fx/img/opt_perf_cpu.png assets-fx/img/opt_perf_libprof.png assets-fx/img/opt_perf_memory.png assets-fx/img/opt_perf_memory_sh3.png diff --git a/assets-fx/img/opt_perf_cpu.png b/assets-fx/img/opt_perf_cpu.png new file mode 100644 index 0000000..416039f Binary files /dev/null and b/assets-fx/img/opt_perf_cpu.png differ diff --git a/include/gintctl/assets.h b/include/gintctl/assets.h index ab7c429..358796e 100644 --- a/include/gintctl/assets.h +++ b/include/gintctl/assets.h @@ -40,6 +40,7 @@ extern bopti_image_t img_opt_libs_jui, img_opt_main, img_opt_mem, + img_opt_perf_cpu, img_opt_perf_libprof, img_opt_perf_memory, img_opt_perf_memory_sh3, diff --git a/src/gint/ram.c b/src/gint/ram.c index ba90d3b..ade99a5 100644 --- a/src/gint/ram.c +++ b/src/gint/ram.c @@ -3,6 +3,7 @@ #include #include +#include #include #include diff --git a/src/perf/cpu.S b/src/perf/cpu.S index 67a97db..0e2ac3b 100644 --- a/src/perf/cpu.S +++ b/src/perf/cpu.S @@ -440,6 +440,7 @@ _perf_cpu_double_incr_read: This section is used to investigate the performance of the 2D texture shader of azur. */ +#ifdef FXCG50 .global _perf_cpu_tex2d .align 4 @@ -451,15 +452,19 @@ _perf_cpu_tex2d: 1: movs.l @r3+, x0 2: movs.l x0, @r5+ EPILOGUE() +#endif /* XRAM buffer */ .align 4 .buffer: .long _cpu_perf_xram_buffer + +#ifdef FXCG50 .buffer2: .long _buffer2 .section .data _buffer2: .zero 2048 +#endif diff --git a/src/perf/cpu.c b/src/perf/cpu.c index c7565b7..28f012c 100644 --- a/src/perf/cpu.c +++ b/src/perf/cpu.c @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -76,7 +77,9 @@ struct results { int raw_EX_LS_addr, raw_DSPLS_DSPLS; int darken_1, darken_2, darken_3, darken_4; int double_read, double_incr_read; + #ifdef FXCG50 int tex2d; + #endif }; /* Number of Iphi cycles total, and number of iterations */ @@ -187,7 +190,9 @@ void gintctl_perf_cpu(void) run(double_read, 1024); run(double_incr_read, 1024); + #ifdef FXCG50 run(tex2d, 512); + #endif table->widget.update = 1; }