aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-07-27 15:54:28 -0400
committerGitHub <noreply@github.com>2022-07-27 15:54:28 -0400
commitb7216c249a56c8b89db8810acff9ff191ffc0e14 (patch)
tree4ccf48f3361f4bd2e4c35b5c9a48e42c12892564 /src/yuzu/bootmanager.cpp
parentd24328ae65fdb7976f5af000004fd737e1d58bb6 (diff)
parentfc923fdc18930b31b4de271a89ddf36caa52a028 (diff)
Merge pull request #8636 from german77/irs_cluster_release
service: irs: Implement clustering processor
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r--src/yuzu/bootmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 6a7f48b6f8..ef3bdfb1a8 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -804,6 +804,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;
}
@@ -837,7 +838,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(100);
+ camera_timer->start(camera_update_ms);
}
void GRenderWindow::FinalizeCamera() {