Add FPS counter
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
class DmxController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(int performance READ performance NOTIFY performanceChanged)
|
||||
|
||||
public:
|
||||
explicit DmxController(QObject *parent = nullptr);
|
||||
@ -24,6 +25,11 @@ public:
|
||||
|
||||
QReadWriteLock &projectLock() { return m_projectLock; }
|
||||
|
||||
int performance() const { return m_lastCounter; }
|
||||
|
||||
signals:
|
||||
void performanceChanged(int performance);
|
||||
|
||||
protected:
|
||||
friend class DmxControllerThread;
|
||||
|
||||
@ -41,4 +47,5 @@ private:
|
||||
|
||||
QDateTime m_lastInfo;
|
||||
int m_counter;
|
||||
std::atomic<int> m_lastCounter;
|
||||
};
|
||||
|
Reference in New Issue
Block a user