summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii
diff options
context:
space:
mode:
authorWei Shuai <cpuwolf@gmail.com>2018-01-28 13:28:08 +0800
committerWei Shuai <cpuwolf@gmail.com>2018-01-28 13:28:08 +0800
commitb531fe8c965cf78a61af435739e7c8367f23d17d (patch)
treec6f9fb649fa3c264ec147be2c56b98f3263009f8 /tracker-wii
parent86e112dd54202bed6880933804a89e1fd62f7d51 (diff)
tracker/wii: reduce CPU percentage
70fps WIImote, so 14ms polling rate is enough
Diffstat (limited to 'tracker-wii')
-rw-r--r--tracker-wii/wii_camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp
index 75ce3950..9c2d618c 100644
--- a/tracker-wii/wii_camera.cpp
+++ b/tracker-wii/wii_camera.cpp
@@ -115,7 +115,7 @@ wii_camera_status WIICamera::_get_frame(cv::Mat& frame)
}
if (m_pDev->RefreshState() == NO_CHANGE) {
- Sleep(1); // don't hog the CPU if nothing changed
+ Sleep(14); // don't hog the CPU if nothing changed
ret = wii_cam_data_no_change;
goto goodbye;
}