Improve module performance

This commit is contained in:
2015-10-02 14:40:39 +01:00
parent 57ba3cce02
commit a8dc1b7986
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -618,14 +618,14 @@ Void VideoSubWindow::refreshFrameOperation()
if( m_pcCurrentDisplayModule )
{
m_bWindowBusy = true;
ModulesHandle::applyModuleIf( m_pcCurrentDisplayModule, m_bIsPlaying );
ModulesHandle::applyModuleIf( m_pcCurrentDisplayModule, m_bIsPlaying, !m_bIsPlaying && m_apcCurrentModule.size() );
bSetFrame = false;
}
if( bSetFrame )
{
m_cViewArea->setImage( m_pcCurrFrame );
}
for( Int i = 0; i < m_apcCurrentModule.size(); i++ )
for( Int i = 0; i < m_apcCurrentModule.size() && !m_bIsPlaying; i++ )
{
m_bWindowBusy = true;
ModulesHandle::applyModuleIf( m_apcCurrentModule.at( i ), m_bIsPlaying );