summaryrefslogtreecommitdiff
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
commit64fd9f41a7d1170dbfa827f796033c4f2cad0cf0 (patch)
tree4ccf48f3361f4bd2e4c35b5c9a48e42c12892564 /src/yuzu/bootmanager.cpp
parenta761d020c61de5a1d354ad9721a66f4c4c9b1e2e (diff)
parentceb70b2139f5a938813fd97e9feaa216c53ac318 (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 6a7f48b6f..ef3bdfb1a 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() {