From 4e7e4894db6d6aae0389c1ae8b8bf6b28df9d384 Mon Sep 17 00:00:00 2001 From: Lorenzooone Date: Mon, 1 Jun 2026 16:57:56 +0200 Subject: [PATCH] a --- source/test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/test.cpp b/source/test.cpp index 5a00891..3b54600 100644 --- a/source/test.cpp +++ b/source/test.cpp @@ -61,7 +61,7 @@ static void counter_step(bool* to_close, int* counter, double* goal_frametime, C counter_lock->unlock(); } -int main() +int main(int argc, char **argv) { double goal_frametime = 1.0 / 59.835; bool vsync_requested = false; @@ -70,6 +70,9 @@ int main() bool target_framerate = false; sf::Font text_font; sf::Font text_font_mono; + if(argc > 1) { + goal_frametime = 1.0 / (std::stod((argv[1]))); + } bool font_load_success = text_font.openFromMemory(font_ttf, font_ttf_len); bool font_mono_load_success = text_font_mono.openFromMemory(font_mono_ttf, font_mono_ttf_len); TextRectangle* notifications[NUM_NOTIFICATIONS];