Sleep a bit longer, especially when PPSSPP paused.

This commit is contained in:
ANR2ME 2020-09-11 13:24:45 +07:00
parent 82a064adcf
commit 1e6593f791
2 changed files with 4 additions and 4 deletions

View File

@ -1589,10 +1589,10 @@ int friendFinder(){
}
}
// This delay time should be 100ms when there is an event otherwise 500ms ?
sleep_ms(1); // Using 1ms for faster response just like AdhocServer?
sleep_ms(10); // Using 1ms for faster response just like AdhocServer?
// Don't do anything if it's paused, otherwise the log will be flooded
while (Core_IsStepping() && coreState != CORE_POWERDOWN && friendFinderRunning) sleep_ms(1);
while (Core_IsStepping() && coreState != CORE_POWERDOWN && friendFinderRunning) sleep_ms(10);
}
// Groups/Networks should be deallocated isn't?

View File

@ -2077,10 +2077,10 @@ int server_loop(int server)
}
// Prevent needless CPU Overload (1ms Sleep)
sleep_ms(1);
sleep_ms(10);
// Don't do anything if it's paused, otherwise the log will be flooded
while (adhocServerRunning && Core_IsStepping() && coreState != CORE_POWERDOWN) sleep_ms(1);
while (adhocServerRunning && Core_IsStepping() && coreState != CORE_POWERDOWN) sleep_ms(10);
}
// Free User Database Memory