Skip to content

Conversation

TitanNano
Copy link
Contributor

As we discovered in #1250, Godot uses a different thread for the main game loop on Android (and possibly other platforms), than the thread the engine was loaded on.

This change mirrors the behavior of the engine, which also reassigns the main thread in Main::setup2 during startup.

@ansdor please let me know if this really resolves your issue on Android.

Fixes #1250

@TitanNano TitanNano force-pushed the jovan/android_main_thread branch from baa3095 to 5959b32 Compare July 29, 2025 19:29
@TitanNano TitanNano added bug c: android Android export target c: async Everything related to async tasks/signals labels Jul 29, 2025
@TitanNano TitanNano self-assigned this Jul 29, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1253

1 similar comment
@GodotRust

This comment was marked as duplicate.

@ansdor
Copy link

ansdor commented Jul 29, 2025

@ansdor please let me know if this really resolves your issue on Android.

yes, it's fixed. thanks a lot

Copy link
Member

@Bromeon Bromeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@TitanNano TitanNano force-pushed the jovan/android_main_thread branch from 5959b32 to bc5c143 Compare July 30, 2025 08:05
@Bromeon Bromeon added this pull request to the merge queue Jul 30, 2025
Merged via the queue into godot-rust:master with commit 9e81485 Jul 30, 2025
18 checks passed
@TitanNano TitanNano deleted the jovan/android_main_thread branch July 30, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: android Android export target c: async Everything related to async tasks/signals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

async doesn't work on android
4 participants