Trying to fix the middle seam bug, want to keep track of what I've tried already (not fixed yet)
This commit is contained in:
parent
b6ef417242
commit
632b6e4112
|
|
@ -384,9 +384,11 @@ void VisualizerWidget::render(QRhiCommandBuffer *cb) {
|
|||
int w = width();
|
||||
int h = height();
|
||||
|
||||
// Only rebuild vertices when new data has arrived
|
||||
if (m_dataDirty) {
|
||||
// Rebuild vertices when new data arrived or widget was resized
|
||||
if (m_dataDirty || w != m_lastBuildW || h != m_lastBuildH) {
|
||||
m_dataDirty = false;
|
||||
m_lastBuildW = w;
|
||||
m_lastBuildH = h;
|
||||
if (m_mirrored) {
|
||||
buildVertices(w * 0.55f, h / 2);
|
||||
buildCepstrumVertices(w, h);
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ private:
|
|||
int m_targetFps = 60;
|
||||
qint64 m_lastFrameTime = 0;
|
||||
bool m_dataDirty = false;
|
||||
int m_lastBuildW = 0;
|
||||
int m_lastBuildH = 0;
|
||||
|
||||
// RHI resources
|
||||
QRhi *m_rhi = nullptr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue