I had to disable this plugin in order to successfully load into the game. Any ideas why?
TDDP PreloadManager seems to break loading on Android
● ARCHIVED · READ-ONLY
-
-
It causes significant memory leaks due to the way caching is programmed. These memory leaks are even amplified by how Android devices manage memory.
-
Normally, the game only loads a resource when its needed and once its not needed anymore they delete it from memory so that your memory usage will be minimal. But that also causes a short delay because of the loading process (which is also why some games have a loading screen when you change areas, so that you wont notice the delay from the loading of resources)
Now, from the way the plugin works, it preloads the assets of your games into memory to prevent the delay that happens when first loading a resource (basically transfers all the "loading" part into the game startup process). That means that your game would use up a significant amount of memory right off the bat especially if your game has a lot of resources. And that could cause crashes etc if the device dont have enough memory to hold of those data.
For PCs, chances are low that you will be having memory issues from that unless you have an old one or are running so many programs or the game has so much resources. But for android devices which normally has a lot of default memory usage already (for example my 3GB ram droid has almost 2GB memory usage just from the defaults), it can become a problem very easily. -
It wouldn't be so bad, but both TDDP and SRD preloaders work in a way that when a referenced resource is no longer in memory, load the resource again and push its reference into an array. When it gets removed, the reference becomes an empty reference, but there's nothing that removes it from the memory. Meaning the more times a resource is loaded, the more empty references there are and the greater the memory leak is. So since android clears its memory way more often than windows, the memory leak increases way faster. In connection with the fact mentioned above that most of the memory is already taken, a crash is unavoidable.
In fact my 4 GB RAM laptop also suffered from crashes due to these leaks. After 30 mins the ram was overflowing and to free it, windows crashed the game, since it was consuming most of the resources.