From f487b991fa3a3a7837c8e02aa0a286f159287974 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 8 Apr 2024 06:23:12 +0200 Subject: c --- bench/critter.cpp | 7 +------ test/critter.cpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/bench/critter.cpp b/bench/critter.cpp index 7b38505d..56bfa9b5 100644 --- a/bench/critter.cpp +++ b/bench/critter.cpp @@ -118,7 +118,7 @@ bool run(world& w, const function_view& make_dt, Ns time{0}, saved_time{0}; auto last_pos = npc.position(); uint32_t i; - constexpr auto max_stop_frames = 250; // todo! detect collisions properly and don't rely on this + constexpr auto max_stop_frames = 250; // todo detect collisions properly and don't rely on this uint32_t frames_stopped = 0; if (!start.quiet) [[unlikely]] @@ -290,11 +290,6 @@ void test2(StringView instance_name, const Function& make_dt, double accel) void test_critter() { - // todo! add ANSI sequence to stdout to goto start of line and clear to eol - // \r - // [2K - // \n - test1("dt=16.667 accel=1", constantly(Millisecond * 16.667), 1); test1("dt=16.667 accel=2", constantly(Millisecond * 16.667), 2); test1("dt=16.667 accel=5", constantly(Millisecond * 16.667), 5); diff --git a/test/critter.cpp b/test/critter.cpp index fe51d329..cc46ef72 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -127,7 +127,7 @@ bool run(world& w, const function_view& make_dt, Ns time{0}, saved_time{0}; auto last_pos = npc.position(); uint32_t i; - constexpr auto max_stop_frames = 250; // todo! detect collisions properly and don't rely on this + constexpr auto max_stop_frames = 250; // todo detect collisions properly and don't rely on this uint32_t frames_stopped = 0; if (!start.quiet) [[unlikely]] @@ -349,11 +349,6 @@ void test3(StringView instance_name, const Function& make_dt, double accel, rota void test_app::test_critter() { - // todo! add ANSI sequence to stdout to goto start of line and clear to eol - // \r - // [2K - // \n - const bool is_noisy = !Start{}.quiet; if (is_noisy) DBG_nospace << ""; -- cgit v1.2.3