From 77a8770aee6ea07336bdb3217ea4006d76cb0990 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 25 Apr 2026 21:31:59 +0300 Subject: [PATCH] patch --- benchmark/benchmark_projectile_pred.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/benchmark_projectile_pred.cpp b/benchmark/benchmark_projectile_pred.cpp index a633754..208a6c8 100644 --- a/benchmark/benchmark_projectile_pred.cpp +++ b/benchmark/benchmark_projectile_pred.cpp @@ -12,11 +12,11 @@ constexpr float hit_distance_tolerance = 5.f; void source_engine_projectile_prediction(benchmark::State& state) { - constexpr Target target{.m_origin = {100, 0, 90}, .m_velocity = {0, 0, 0}, .m_is_airborne = false}; - constexpr Projectile projectile = {.m_origin = {3, 2, 1}, .m_launch_speed = 5000, .m_gravity_scale = 0.4}; + constexpr Target target{.m_origin = {100, 0, 90}, .m_velocity = {0, 0, 0}, .m_is_airborne = false}; + constexpr Projectile projectile = {.m_origin = {3, 2, 1}, .m_launch_speed = 5000.f, .m_gravity_scale = 0.4f}; for ([[maybe_unused]] const auto _: state) - std::ignore = ProjPredEngineLegacy(400, simulation_time_step, 50, hit_distance_tolerance) + std::ignore = ProjPredEngineLegacy<>(400.f, simulation_time_step, 50.f, hit_distance_tolerance) .maybe_calculate_aim_point(projectile, target); }