Address comments

This commit is contained in:
Narr the Reg
2022-07-25 10:30:18 -05:00
parent 21b1e9c21a
commit ceb70b2139
2 changed files with 18 additions and 17 deletions

View File

@ -805,6 +805,7 @@ void GRenderWindow::TouchEndEvent() {
}
void GRenderWindow::InitializeCamera() {
constexpr auto camera_update_ms = std::chrono::milliseconds{50}; // (50ms, 20Hz)
if (!Settings::values.enable_ir_sensor) {
return;
}
@ -838,7 +839,7 @@ void GRenderWindow::InitializeCamera() {
camera_timer = std::make_unique<QTimer>();
connect(camera_timer.get(), &QTimer::timeout, [this] { RequestCameraCapture(); });
// This timer should be dependent of camera resolution 5ms for every 100 pixels
camera_timer->start(50);
camera_timer->start(camera_update_ms);
}
void GRenderWindow::FinalizeCamera() {