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 w = width();
|
||||||
int h = height();
|
int h = height();
|
||||||
|
|
||||||
// Only rebuild vertices when new data has arrived
|
// Rebuild vertices when new data arrived or widget was resized
|
||||||
if (m_dataDirty) {
|
if (m_dataDirty || w != m_lastBuildW || h != m_lastBuildH) {
|
||||||
m_dataDirty = false;
|
m_dataDirty = false;
|
||||||
|
m_lastBuildW = w;
|
||||||
|
m_lastBuildH = h;
|
||||||
if (m_mirrored) {
|
if (m_mirrored) {
|
||||||
buildVertices(w * 0.55f, h / 2);
|
buildVertices(w * 0.55f, h / 2);
|
||||||
buildCepstrumVertices(w, h);
|
buildCepstrumVertices(w, h);
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,8 @@ private:
|
||||||
int m_targetFps = 60;
|
int m_targetFps = 60;
|
||||||
qint64 m_lastFrameTime = 0;
|
qint64 m_lastFrameTime = 0;
|
||||||
bool m_dataDirty = false;
|
bool m_dataDirty = false;
|
||||||
|
int m_lastBuildW = 0;
|
||||||
|
int m_lastBuildH = 0;
|
||||||
|
|
||||||
// RHI resources
|
// RHI resources
|
||||||
QRhi *m_rhi = nullptr;
|
QRhi *m_rhi = nullptr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue