summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 06:23:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 06:23:12 +0200
commitf487b991fa3a3a7837c8e02aa0a286f159287974 (patch)
treec52942166f00f159e674836df97b51b7e0bab6cb
parentad052388e4ec5d55adc3eafb1d4974e67341ab67 (diff)
c
-rw-r--r--bench/critter.cpp7
-rw-r--r--test/critter.cpp7
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<Ns() const>& 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
- // <ESC>[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<Ns() const>& 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
- // <ESC>[2K
- // \n
-
const bool is_noisy = !Start{}.quiet;
if (is_noisy)
DBG_nospace << "";