Workaround updating frame (and thus darkening the image)
by only updating when there is new data. This essentially limits the frame rate to the buffer update rate This will be fixed when painting is done in smaller chunks of the buffer
This commit is contained in:
1 parent
86b99ab8d2
commit
e6249131ff
1 file changed
+3
@@ -62,6 +62,9 @@ void OsciWidget::paintEvent(QPaintEvent *event)
|
||||
|
||||
void OsciWidget::updateFrameBuffer()
|
||||
{
|
||||
// Workaround for flickering (do not update, when there is no new data)
|
||||
if(m_buffer.empty()) return;
|
||||
|
||||
if (m_pixmap.size() != size())
|
||||
m_pixmap = QPixmap(size());
|
||||
|
||||
|
||||
Reference in new issue
Block a user