mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Sleep a bit longer, especially when PPSSPP paused.
This commit is contained in:
parent
82a064adcf
commit
1e6593f791
@ -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?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user