mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Omitted extra lower_bound() calls to reduce the computational time. The old routine consumed more than 4% of computational time of a thread. It is a trivial modification.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5142 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -494,16 +494,11 @@ void Update()
|
|||||||
void UpdateDevices()
|
void UpdateDevices()
|
||||||
{
|
{
|
||||||
// Check if a hardware device must be updated
|
// Check if a hardware device must be updated
|
||||||
TDeviceMap::const_iterator itr = g_DeviceMap.begin();
|
TDeviceMap::const_iterator itrEnd = g_DeviceMap.lower_bound(IPC_FIRST_FILEIO_ID);
|
||||||
|
for (TDeviceMap::const_iterator itr = g_DeviceMap.begin(); itr != itrEnd; ++itr) {
|
||||||
while (itr != g_DeviceMap.lower_bound(IPC_FIRST_FILEIO_ID))
|
if (itr->second->IsOpened() && itr->second->Update()) {
|
||||||
{
|
break;
|
||||||
if (itr->second->IsOpened())
|
|
||||||
{
|
|
||||||
if (itr->second->Update())
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
++itr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user