diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp index 786c07e5f55750fde8a1f543b5549f1c1e980901..ef33ab93a1c93dc5c74ef6787cb47bceab49f71e 100644 --- a/components/common/cpp/src/configuration.cpp +++ b/components/common/cpp/src/configuration.cpp @@ -517,7 +517,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r }); // Some global settings - ftl::timer::setInterval(rootcfg->value("fps",20)); + ftl::timer::setInterval(1000 / rootcfg->value("fps",20)); int pool_size = rootcfg->value("thread_pool_factor", 2.0f)*std::thread::hardware_concurrency(); if (pool_size != ftl::pool.size()) ftl::pool.resize(pool_size); diff --git a/components/rgbd-sources/include/ftl/rgbd/group.hpp b/components/rgbd-sources/include/ftl/rgbd/group.hpp index 8f1dd61a64ec9b9a520e35f4158ba881e6b96f0c..35b3640cfcbfcb2530d02a060ae9dd016fd18efd 100644 --- a/components/rgbd-sources/include/ftl/rgbd/group.hpp +++ b/components/rgbd-sources/include/ftl/rgbd/group.hpp @@ -78,7 +78,7 @@ class Group { /** To be deprecated in favour of ftl::timer::setInterval. */ - void setFPS(int fps); + //void setFPS(int fps); /** * Set the minimum number of frames latency. The latency is from the most diff --git a/components/rgbd-sources/src/group.cpp b/components/rgbd-sources/src/group.cpp index 1d700e10856192dca7eca6a2bc9544e3b887af16..af8dd00e17ec7307dd5c8af25a3d490953d447fb 100644 --- a/components/rgbd-sources/src/group.cpp +++ b/components/rgbd-sources/src/group.cpp @@ -38,10 +38,10 @@ Group::~Group() { } } -void Group::setFPS(int fps) { - mspf_ = 1000 / fps; - ftl::timer::setInterval(mspf_); -} +//void Group::setFPS(int fps) { +// mspf_ = 1000 / fps; +// ftl::timer::setInterval(mspf_); +//} void Group::addSource(ftl::rgbd::Source *src) { UNIQUE_LOCK(mutex_, lk);