From 76a5ca84d10ad82807aacb4dc60c2466bab8a223 Mon Sep 17 00:00:00 2001 From: "dok.slade" Date: Fri, 3 Sep 2010 09:08:33 +0000 Subject: [PATCH] Removed the check on video plugin change in PluginManager::GetVideo() (Profiling shows lots of strings compare from this function). Since plugins can't be changed when emulation is started, it's a waste of time to check if it has changed. There may be cases where this check is needed. If so, the check should be done in another function (because GetVideo() is called very often while emulating). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6168 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PluginManager.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Core/Core/Src/PluginManager.cpp b/Source/Core/Core/Src/PluginManager.cpp index 3192ae25fa..4a29ea12bc 100644 --- a/Source/Core/Core/Src/PluginManager.cpp +++ b/Source/Core/Core/Src/PluginManager.cpp @@ -360,12 +360,7 @@ Common::PluginVideo *CPluginManager::GetVideo() if it's not valid */ if (m_video != NULL) { - // Check if the video plugin has been changed - if (m_video->GetFilename() == m_params->m_strVideoPlugin) - return m_video; - // Then free the current video plugin - else - FreeVideo(); + return m_video; } // and load a new plugin