#include <kis_opengl_canvas_debugger.h>
◆ KisOpenglCanvasDebugger()
| KisOpenglCanvasDebugger::KisOpenglCanvasDebugger |
( |
| ) |
|
◆ ~KisOpenglCanvasDebugger()
| KisOpenglCanvasDebugger::~KisOpenglCanvasDebugger |
( |
| ) |
|
◆ accumulatedFps()
| qreal KisOpenglCanvasDebugger::accumulatedFps |
( |
| ) |
|
◆ instance()
◆ notifyPaintRequested()
| void KisOpenglCanvasDebugger::notifyPaintRequested |
( |
| ) |
|
Definition at line 83 of file kis_opengl_canvas_debugger.cpp.
84{
85 if (!
m_d->isEnabled)
return;
86
87 m_d->fpsSum +=
m_d->time.restart();
89
90 if (
m_d->fpsCounter > 100 &&
m_d->fpsSum > 0) {
91 qDebug() <<
"Requested FPS:" << qreal(
m_d->fpsCounter) /
m_d->fpsSum * 1000.0;
94 }
95}
References m_d.
◆ notifySyncStatus()
| void KisOpenglCanvasDebugger::notifySyncStatus |
( |
bool | value | ) |
|
Definition at line 97 of file kis_opengl_canvas_debugger.cpp.
98{
99 if (!
m_d->isEnabled)
return;
100
101 m_d->syncFlaggedSum += isBusy;
102 m_d->syncFlaggedCounter++;
103
104 if (
m_d->syncFlaggedCounter > 500 &&
m_d->syncFlaggedSum > 0) {
105 qDebug() <<
"glSync effectiveness:" << qreal(
m_d->syncFlaggedSum) /
m_d->syncFlaggedCounter;
106 m_d->syncFlaggedSum = 0;
107 m_d->syncFlaggedCounter = 0;
108 }
109}
References m_d.
◆ showFpsOnCanvas()
| bool KisOpenglCanvasDebugger::showFpsOnCanvas |
( |
| ) |
const |
◆ slotConfigChanged
| void KisOpenglCanvasDebugger::slotConfigChanged |
( |
| ) |
|
|
privateslot |
◆ m_d
| const QScopedPointer<Private> KisOpenglCanvasDebugger::m_d |
|
private |
The documentation for this class was generated from the following files: