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
This commit is contained in:
parent
c08144f893
commit
76a5ca84d1
|
@ -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();
|
||||
}
|
||||
|
||||
// and load a new plugin
|
||||
|
|
Loading…
Reference in New Issue