summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/raycast-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r--editor/tests/raycast-test.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 76fdde8b..13199244 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -10,7 +10,6 @@
#include <array>
#include <vector>
#include <mg/Color.h>
-#include <mg/Timeline.h>
namespace floormat::tests {
@@ -57,7 +56,6 @@ struct raycast_test final : base_test
raycast_result_s result;
pending_s pending;
raycast_diag_s diag;
- float time = 0;
~raycast_test() noexcept override;
@@ -70,7 +68,6 @@ struct raycast_test final : base_test
{
if (e.button == mouse_button_left && is_down)
{
- time = 0;
auto& M = a.main();
auto& w = M.world();
if (auto pt_ = a.cursor_state().point())
@@ -250,7 +247,7 @@ struct raycast_test final : base_test
text(buf);
do_column("time");
- std::snprintf(buf, std::size(buf), "%.3f ms", (double)(1000 * time));
+ std::snprintf(buf, std::size(buf), "%.3f ms", (double)(1000 * result.time));
text(buf);
}
}
@@ -270,10 +267,7 @@ struct raycast_test final : base_test
fm_warn("raycast: wrong Z value");
return;
}
- Timeline timeline;
- timeline.start();
result = raycast_with_diag(diag, a.main().world(), pending.from, pending.to, pending.self);
- time = timeline.currentFrameDuration();
}
}
};