summaryrefslogtreecommitdiff
path: root/reduced_system_layer.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-04-16 12:08:17 +0200
committerMitya Selivanov <automainint@guattari.tech>2025-04-16 12:08:17 +0200
commit24e30558d8b30d399a69dd99a510fd43ca075cfe (patch)
treeb1b036950344a512b03d3ec3a03ffe380dacbc01 /reduced_system_layer.c
parent3927be06fd49a6cae3d013f65549d38889f58b62 (diff)
downloadreduced_system_layer-24e30558d8b30d399a69dd99a510fd43ca075cfe.zip
Remove graphics benchmarks
Diffstat (limited to 'reduced_system_layer.c')
-rwxr-xr-xreduced_system_layer.c6
1 files changed, 5 insertions, 1 deletions
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;