mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-26 02:23:26 +00:00
patch
This commit is contained in:
@@ -12,11 +12,11 @@ constexpr float hit_distance_tolerance = 5.f;
|
|||||||
|
|
||||||
void source_engine_projectile_prediction(benchmark::State& state)
|
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 Target<float> 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 Projectile<float> projectile = {.m_origin = {3, 2, 1}, .m_launch_speed = 5000.f, .m_gravity_scale = 0.4f};
|
||||||
|
|
||||||
for ([[maybe_unused]] const auto _: state)
|
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);
|
.maybe_calculate_aim_point(projectile, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user