Skip to content

Commit

Permalink
merged from rendergraph, connect m_marks signals in init (after m_mar…
Browse files Browse the repository at this point in the history
…ks has been setup, fixes rendering), removed isSubtreeBlocked from end of track, force ST_TIMER for QML (to call VisualsManager), various cleanups and minor fixes.
  • Loading branch information
m0dB authored and acolombier committed Nov 23, 2024
1 parent bdaacee commit 7582045
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int runMixxx(MixxxApplication* pApp, const CmdlineArgs& args) {
auto pVisuals = std::make_unique<VisualsManager>();
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 =
Expand Down
2 changes: 1 addition & 1 deletion src/mixxxmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions src/rendergraph/opengl/texture.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#include "rendergraph/texture.h"
#include <qnamespace.h>
#include <qrgb.h>
#include "rendergraph/assert.h"

#include <qnamespace.h>
#include <qrgb.h>
Expand Down
2 changes: 1 addition & 1 deletion src/waveform/renderers/allshader/waveformrendermark.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DigitsRenderNode;
class WaveformRenderMark;
class WaveformMarkNode;
class WaveformMarkNodeGraphics;
}
} // namespace allshader

class allshader::WaveformRenderMark : public ::WaveformRenderMarkBase,
public rendergraph::Node {
Expand Down
9 changes: 6 additions & 3 deletions src/waveform/waveformwidgetfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,12 @@ int WaveformWidgetFactory::findIndexOf(WWaveformViewer* viewer) const {
return -1;
}

void WaveformWidgetFactory::startVSync(GuiTick* pGuiTick, VisualsManager* pVisualsManager) {
const auto vSyncMode = static_cast<VSyncThread::VSyncMode>(
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<VSyncThread::VSyncMode>(
m_config->getValue(ConfigKey("[Waveform]", "VSync"), 0));

m_pGuiTick = pGuiTick;
m_pVisualsManager = pVisualsManager;
Expand Down
2 changes: 1 addition & 1 deletion src/waveform/waveformwidgetfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class WaveformWidgetFactory : public QObject, public Singleton<WaveformWidgetFac
void addVuMeter(WVuMeterLegacy* pWidget);
void addVuMeter(WVuMeterBase* pWidget);

void startVSync(GuiTick* pGuiTick, VisualsManager* pVisualsManager);
void startVSync(GuiTick* pGuiTick, VisualsManager* pVisualsManager, bool useQML);

void setPlayMarkerPosition(double position);
double getPlayMarkerPosition() const { return m_playMarkerPosition; }
Expand Down

0 comments on commit 7582045

Please sign in to comment.