Merge pull request #14764 from poke1024/android
Increase sleep time for android export thread
This commit is contained in:
commit
fc0e341fc5
@ -352,10 +352,11 @@ class EditorExportAndroid : public EditorExportPlatform {
|
|||||||
ea->device_lock->unlock();
|
ea->device_lock->unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t sleep = OS::get_singleton()->get_power_state() == OS::POWERSTATE_ON_BATTERY ? 1000 : 100;
|
||||||
uint64_t wait = 3000000;
|
uint64_t wait = 3000000;
|
||||||
uint64_t time = OS::get_singleton()->get_ticks_usec();
|
uint64_t time = OS::get_singleton()->get_ticks_usec();
|
||||||
while (OS::get_singleton()->get_ticks_usec() - time < wait) {
|
while (OS::get_singleton()->get_ticks_usec() - time < wait) {
|
||||||
OS::get_singleton()->delay_usec(1000);
|
OS::get_singleton()->delay_usec(1000 * sleep);
|
||||||
if (ea->quit_request)
|
if (ea->quit_request)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user