releaseMemory

abstract fun releaseMemory()

Free the memory that the engine can build again without a download. The engine frees the decoded images that the canvas did not draw last, and the video thumbnails. It also frees the files that no block uses, and the unused GPU textures. The files that blocks use stay, so no file downloads again. The next frames decode the freed images again when they need them. The engine calls it on its own when the system reports low memory or moves the app to the background. From Android 14 the system reports no low memory to an app in the foreground, so call it there yourself.