summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye/module.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-08-18 08:28:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-08-18 08:33:40 +0200
commit72992a8b45987a46d8eaff90a46a87e765117302 (patch)
treeade211758fde51a326ce79302dadc5c1e95f42df /video-ps3eye/module.cpp
parent78519a6a50271dbaaf7d04d84665777a637354d7 (diff)
video/ps3eye: fix frame drops at 83 Hz
Diffstat (limited to 'video-ps3eye/module.cpp')
-rw-r--r--video-ps3eye/module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp
index a4afacb5..d135047c 100644
--- a/video-ps3eye/module.cpp
+++ b/video-ps3eye/module.cpp
@@ -176,7 +176,7 @@ bool ps3eye_camera::start(info& args)
ptr.in.gain = (uint8_t)s.gain;
ptr.in.exposure = (uint8_t)s.exposure;
- sleep_ms = std::clamp(int(std::floor(1000./ptr.in.framerate*2)), 1, 10);
+ sleep_ms = std::clamp(int(std::floor(450./ptr.in.framerate)), 1, 10);
wrapper.start();