Update UI 60 times per second (#4570)
* Update UI 60 times per second * Adjust falloff values
This commit is contained in:
committed by
Hyunjin Song
parent
153f15f4b4
commit
dd7b0865fb
@@ -579,7 +579,7 @@ void FxMixerView::updateFaders()
|
||||
{
|
||||
const float opl = m_fxChannelViews[i]->m_fader->getPeak_L();
|
||||
const float opr = m_fxChannelViews[i]->m_fader->getPeak_R();
|
||||
const float fall_off = 1.2;
|
||||
const float fallOff = 1.07;
|
||||
if( m->effectChannel(i)->m_peakLeft > opl )
|
||||
{
|
||||
m_fxChannelViews[i]->m_fader->setPeak_L( m->effectChannel(i)->m_peakLeft );
|
||||
@@ -587,7 +587,7 @@ void FxMixerView::updateFaders()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fxChannelViews[i]->m_fader->setPeak_L( opl/fall_off );
|
||||
m_fxChannelViews[i]->m_fader->setPeak_L( opl/fallOff );
|
||||
}
|
||||
|
||||
if( m->effectChannel(i)->m_peakRight > opr )
|
||||
@@ -597,7 +597,7 @@ void FxMixerView::updateFaders()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fxChannelViews[i]->m_fader->setPeak_R( opr/fall_off );
|
||||
m_fxChannelViews[i]->m_fader->setPeak_R( opr/fallOff );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ MainWindow::MainWindow() :
|
||||
vbox->addWidget( w );
|
||||
setCentralWidget( main_widget );
|
||||
|
||||
m_updateTimer.start( 1000 / 20, this ); // 20 fps
|
||||
m_updateTimer.start( 1000 / 60, this ); // 60 fps
|
||||
|
||||
if( ConfigManager::inst()->value( "ui", "enableautosave" ).toInt() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user