summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
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
parent78519a6a50271dbaaf7d04d84665777a637354d7 (diff)
video/ps3eye: fix frame drops at 83 Hz
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/module.cpp2
m---------video-ps3eye/ps3eye-driver0
2 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();
diff --git a/video-ps3eye/ps3eye-driver b/video-ps3eye/ps3eye-driver
-Subproject ac056aa85dca83be3b1a14df7b20fd07104e052
+Subproject 0565c52ac45d74e4ece881b30c2e991ce3addb3