Note: This relies on the rendering thread model changed to "Threaded", which is an experimental feature. This may cause big problems in the future!! See: https://docs.godotengine.org/en/stable/tutorials/performance/thread_safe_apis.html#rendering