From 24e30558d8b30d399a69dd99a510fd43ca075cfe Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 16 Apr 2025 12:08:17 +0200 Subject: Remove graphics benchmarks --- reduced_system_layer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reduced_system_layer.c') diff --git a/reduced_system_layer.c b/reduced_system_layer.c index 649190f..cd0a4a3 100755 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -3147,7 +3147,7 @@ void put_image_to_main_window_(void) { XFlush(_display); } -void init_main_window(void) { +static void init_profiler_slots(void) { PROFILER_init(PROFILE_MEMORY, "Memory allocator"); PROFILER_init(PROFILE_DOWNSCALE, "Downscale anti-aliasing"); PROFILER_init(PROFILE_RESIZE, "Resize in-place"); @@ -3162,6 +3162,10 @@ void init_main_window(void) { PROFILER_init(PROFILE_FILL_LINE, "Fill line"); PROFILER_init(PROFILE_DRAW_TEXT_AREA, "Draw text area"); PROFILER_init(PROFILE_DRAW_TEXT_CURSOR, "Draw text cursor"); +} + +void init_main_window(void) { + init_profiler_slots(); for (i64 i = 0; i < NUM_FRAMES_AVERAGED; ++i) _frame_duration[i] = (MIN_FRAME_DURATION + MAX_FRAME_DURATION) / 2; -- cgit v1.2.3