Skip to content
Snippets Groups Projects
Commit fefe31fc authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Correct default fps setting

parent f71239c7
No related branches found
No related tags found
No related merge requests found
Pipeline #12947 passed
...@@ -517,7 +517,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r ...@@ -517,7 +517,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
}); });
// Some global settings // 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(); 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); if (pool_size != ftl::pool.size()) ftl::pool.resize(pool_size);
......
...@@ -78,7 +78,7 @@ class Group { ...@@ -78,7 +78,7 @@ class Group {
/** To be deprecated in favour of ftl::timer::setInterval. /** 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 * Set the minimum number of frames latency. The latency is from the most
......
...@@ -38,10 +38,10 @@ Group::~Group() { ...@@ -38,10 +38,10 @@ Group::~Group() {
} }
} }
void Group::setFPS(int fps) { //void Group::setFPS(int fps) {
mspf_ = 1000 / fps; // mspf_ = 1000 / fps;
ftl::timer::setInterval(mspf_); // ftl::timer::setInterval(mspf_);
} //}
void Group::addSource(ftl::rgbd::Source *src) { void Group::addSource(ftl::rgbd::Source *src) {
UNIQUE_LOCK(mutex_, lk); UNIQUE_LOCK(mutex_, lk);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment