Commit b3f73660 authored by Thiago Santini's avatar Thiago Santini

Exposes drop enabling interface

parent cb91b92d
......@@ -18,7 +18,7 @@
*/
PerformanceMonitor::PerformanceMonitor() :
frameDropEnabled(true),
frameDropEnabled(false),
delayedFrameCount(0)
{
......
......@@ -15,7 +15,8 @@ public:
bool shouldDrop(const unsigned int &idx, const int &delay, const int &maxDelay=50);
void account(const unsigned int &idx);
QString getEnrolled(const unsigned int &idx) { return idx < enrolled.size() ? enrolled[idx] : QString(); }
unsigned int enrolledCount() { return (unsigned int) enrolled.size(); }
unsigned int enrolledCount() { return (unsigned int) enrolled.size(); }
void setFrameDrop(bool enabled = true) { frameDropEnabled = enabled; }
void report();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment