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:
pszsh 2026-02-26 17:29:59 -08:00
parent b6ef417242
commit 632b6e4112
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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;