mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
4d0da74014
On Android the exit logic goes through `Godot#onDestroy()` who attempts to cleanup the engine using the following code: ``` runOnRenderThread { GodotLib.ondestroy() forceQuit() } ``` The issue however is that by the time we ran this code, the render thread has already been paused (but not yet destroyed), and thus `GodotLib.ondestroy()` and `forceQuit()` which are scheduled on the render thread are not executed. To address this, we instead explicitly request the render thread to exit and block until it does. As part of it exit logic, the render thread has been updated to properly destroy and clean the native instance of the Godot engine, resolving the issue. |
||
---|---|---|
.. | ||
android | ||
ios | ||
linuxbsd | ||
macos | ||
web | ||
windows | ||
register_platform_apis.h | ||
SCsub |