mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Use the more accurate sleep function in the UI throttling
This commit is contained in:
1 parent
7cc4a0f3a3
commit
c29eb5097b
3 files changed
+28
-9
No files matched your search
@@ -256,6 +256,9 @@ double Instant::ElapsedSeconds() const {
|
||||
#define SLEEP_LOG_ENABLED 0
|
||||
|
||||
void sleep_ms(int ms, const char *reason) {
|
||||
if (ms <= 0) {
|
||||
return;
|
||||
}
|
||||
#if SLEEP_LOG_ENABLED
|
||||
INFO_LOG(Log::System, "Sleep %d ms: %s", ms, reason);
|
||||
#endif
|
||||
@@ -271,6 +274,9 @@ void sleep_ms(int ms, const char *reason) {
|
||||
}
|
||||
|
||||
void sleep_us(int us, const char *reason) {
|
||||
if (us <= 0) {
|
||||
return;
|
||||
}
|
||||
#if SLEEP_LOG_ENABLED
|
||||
INFO_LOG(Log::System, "Sleep %d us: %s", us, reason);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user