Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(3 edits)

There is an  "android app not responding timeout" of 5 seconds.

https://developer.android.com/training/articles/perf-anr.html

This is also a problem of coding, if you run timeexpensive code inside codeareas handling the gfx, like building a window and so on. The whole window build process is waiting for this timeexpensive code and the system reacts at some point. This problem could be fixed if you separate the "build windows process" from the "timeexpensive code" using different threads (multithreading) and then let the window wait till the timeexpensive code is finished. Normaly you do something like "please wait ...". This is a problem of the modern programming. You can't put long running code in objects like a window without "separating" it.

Looks like your cpu is to slow to handle this problem fast enough? Can you stop some other running apps to give your cpu some help?

Thank you for all. I tried root long time ago but didn't work. I deleted software and i uploaded. Its not work. You said codes but i can't do this. Sorry for waste of time.

(2 edits)

This code problem is nothing we can do. You need access to source code and rewrite some mechanics to work multi thread there. I also can´t say, if this is common for godot engine based games or if this could be fixed in game coding part. Normaly it should be fixed in game coding, but its´s more then to change a trigger. You need to learn first the mechanic and syntax of multithreading in godot.

https://docs.godotengine.org/en/3.1/tutorials/threads/using_multiple_threads.htm...

There is also some special in the conservation between multiply threads, so it´s also some more work to wait (sleep) in one thread till the other thread is finished. This is something we can´t do. You can only try to speed up your system or try to find a way to stop a shutdown.

https://www.howtogeek.com/183004/why-android-phones-slow-down-over-time-and-how-...

Have you old version link?

I have old versions up to HOS.19, but i didn´t think this will help you. You can also try very old versions running in browers. But i think its the same. If you google "highschool of succubus" you find a lot of links to websites "hosting" old versions of hos in browser.

(8 edits)

What happens if you try to pause HOS before the shutdown.

I am new to android handling, but programmed in past some code on android. I know there are some states for the app like pausing and resuming.

https://stuff.mit.edu/afs/sipb/project/android/docs/training/basics/activity-lif...

Is it possible to start HOS then start a new game and pause and resume it without coding? I mean you start new game, pause it by switching to another app. What happens then? I think godot engine handles the pause and resume events correctly. Perhaps this will make the HOS-Code part paused. If HOS app is not shut down, when starting a new game and pause it, this could be a way to jump over the problem, by pausing and resuming the app. But this is only theoretically.

Edit : I have used the mechanic to start a new game on my test envirement without "the app is not working" message triggering.

Try this -> Start new game in HOS. Then fast click another app. I used the Filemanager. Now you can wait. I waited 10 seconds on my try, you need to wait longer i think. Then click HOS back to work. I was instantly in first tutorial scene. This means the HOS time consuming code can work in background and when its finished you can switch back to the app and the gfx build process then is no longer slowed down.