change defaults

This commit is contained in:
Ruben van de Ven 2025-10-17 17:34:16 +02:00
parent 966632c490
commit c04b754f98

View file

@ -106,6 +106,8 @@ struct LaserSettings {
radians_per_point: f32, radians_per_point: f32,
} }
const DEFAULT_POINT_HZ: u32 = 30_000;
const DEFAULT_FRAME_HZ: u32 = 35;
impl Default for LaserSettings { impl Default for LaserSettings {
@ -113,12 +115,12 @@ impl Default for LaserSettings {
use laser::stream; use laser::stream;
use laser::stream::frame::InterpolationConfig; use laser::stream::frame::InterpolationConfig;
LaserSettings { LaserSettings {
point_hz: 30000, //stream::DEFAULT_POINT_HZ, point_hz: DEFAULT_POINT_HZ, //stream::DEFAULT_POINT_HZ,
latency_points: stream::points_per_frame( latency_points: stream::points_per_frame(
stream::DEFAULT_POINT_HZ, DEFAULT_POINT_HZ,
stream::DEFAULT_FRAME_HZ, DEFAULT_FRAME_HZ,
) * 4, ) * 4,
frame_hz: 35, //stream::DEFAULT_FRAME_HZ, frame_hz: DEFAULT_FRAME_HZ, //stream::DEFAULT_FRAME_HZ,
enable_optimisations: true, enable_optimisations: true,
enable_draw_reorder: true, enable_draw_reorder: true,
distance_per_point: InterpolationConfig::DEFAULT_DISTANCE_PER_POINT, distance_per_point: InterpolationConfig::DEFAULT_DISTANCE_PER_POINT,