diff --git a/src/main.cpp b/src/main.cpp index 9041dbf0f96..01ae3155e6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,7 +66,7 @@ int runMixxx(MixxxApplication* pApp, const CmdlineArgs& args) { auto pVisuals = std::make_unique(); WaveformWidgetFactory::createInstance(); // takes a long time WaveformWidgetFactory::instance()->setConfig(pCoreServices->getSettings()); - WaveformWidgetFactory::instance()->startVSync(pTick.get(), pVisuals.get()); + WaveformWidgetFactory::instance()->startVSync(pTick.get(), pVisuals.get(), true); { mixxx::qml::QmlApplication qmlApplication(pApp, pCoreServices); const QStringList visualGroups = diff --git a/src/mixxxmainwindow.cpp b/src/mixxxmainwindow.cpp index c5b44237bf9..2c36155ff26 100644 --- a/src/mixxxmainwindow.cpp +++ b/src/mixxxmainwindow.cpp @@ -273,7 +273,7 @@ void MixxxMainWindow::initialize() { WaveformWidgetFactory::createInstance(); // takes a long time WaveformWidgetFactory::instance()->setConfig(m_pCoreServices->getSettings()); - WaveformWidgetFactory::instance()->startVSync(m_pGuiTick, m_pVisualsManager); + WaveformWidgetFactory::instance()->startVSync(m_pGuiTick, m_pVisualsManager, false); connect(this, &MixxxMainWindow::skinLoaded, diff --git a/src/rendergraph/opengl/texture.cpp b/src/rendergraph/opengl/texture.cpp index 45550222944..88921bde9df 100644 --- a/src/rendergraph/opengl/texture.cpp +++ b/src/rendergraph/opengl/texture.cpp @@ -1,7 +1,4 @@ #include "rendergraph/texture.h" -#include -#include -#include "rendergraph/assert.h" #include #include diff --git a/src/waveform/renderers/allshader/waveformrendermark.h b/src/waveform/renderers/allshader/waveformrendermark.h index e0ef9e1d386..f539b1e82d8 100644 --- a/src/waveform/renderers/allshader/waveformrendermark.h +++ b/src/waveform/renderers/allshader/waveformrendermark.h @@ -18,7 +18,7 @@ class DigitsRenderNode; class WaveformRenderMark; class WaveformMarkNode; class WaveformMarkNodeGraphics; -} +} // namespace allshader class allshader::WaveformRenderMark : public ::WaveformRenderMarkBase, public rendergraph::Node { diff --git a/src/waveform/waveformwidgetfactory.cpp b/src/waveform/waveformwidgetfactory.cpp index a9f84959ef7..6fc8aa3a16d 100644 --- a/src/waveform/waveformwidgetfactory.cpp +++ b/src/waveform/waveformwidgetfactory.cpp @@ -1168,9 +1168,12 @@ int WaveformWidgetFactory::findIndexOf(WWaveformViewer* viewer) const { return -1; } -void WaveformWidgetFactory::startVSync(GuiTick* pGuiTick, VisualsManager* pVisualsManager) { - const auto vSyncMode = static_cast( - m_config->getValue(ConfigKey("[Waveform]", "VSync"), 0)); +void WaveformWidgetFactory::startVSync( + GuiTick* pGuiTick, VisualsManager* pVisualsManager, bool useQML) { + const auto vSyncMode = useQML + ? VSyncThread::ST_TIMER + : static_cast( + m_config->getValue(ConfigKey("[Waveform]", "VSync"), 0)); m_pGuiTick = pGuiTick; m_pVisualsManager = pVisualsManager; diff --git a/src/waveform/waveformwidgetfactory.h b/src/waveform/waveformwidgetfactory.h index 2cb9de50b15..629fb3fb0b6 100644 --- a/src/waveform/waveformwidgetfactory.h +++ b/src/waveform/waveformwidgetfactory.h @@ -206,7 +206,7 @@ class WaveformWidgetFactory : public QObject, public Singleton