Fully working android in older phones

This commit is contained in:
Alejandro Saucedo 2020-10-04 14:37:26 +01:00
parent 9698ba7f42
commit 61471339ce
8 changed files with 71 additions and 31 deletions

View file

@ -66,9 +66,11 @@ Java_com_ethicalml_kompute_KomputeJni_initVulkan(JNIEnv *env, jobject thiz) {
uint32_t totalRetries = 0;
while (totalRetries < KOMPUTE_VK_INIT_RETRIES) {
LOGI("VULKAN LOAD TRY NUMBER: %u", totalRetries);
if(InitVulkan()) {
break;
}
sleep(1);
totalRetries++;
}