diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-07-25 10:30:18 -0500 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-07-25 11:17:48 -0500 |
commit | ceb70b2139f5a938813fd97e9feaa216c53ac318 (patch) | |
tree | 2ff4da68224bda34b1ec47f630215eb094cd3cc6 /src/yuzu/bootmanager.cpp | |
parent | 21b1e9c21afa5d79b9de850166a375f9b050cc1f (diff) |
Address comments
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 3acb61f03..8feb85b71 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -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() { |