Iakobs / godot-play-game-services

A Godot 4.2 plugin for integration with Google Play Game Services
MIT License
82 stars 5 forks source link

Suggestion: Make autoloads optional #25

Closed kdlee closed 3 months ago

kdlee commented 3 months ago

Thanks for making this helpful plugin! This is just a minor convenience suggestion.

Suggestion: Current editor plugin force adds all singletons to the project each time it loads. Enable choosing which ones to autoload in the editor tab with "Game ID"

Reason: This can be problematic when I have some performance need and/or preference. For example, GodotPlayGameServices singleton always autoloading and force calling initialize() from main thread appears to block everything until sign in completes. This slows down the user launch experience by a few seconds (waiting for the sign in & animation to complete) every time the game is launched. Also, this enables some games to not force sign in, unless the uses requests to do so.

kdlee commented 3 months ago

Actually... sorry never mind... Just tried hacking the plugin to not do anything but just linking the plugin does force sign in...

Coming from Play Game Services v1 which allowed not signing in, I thought this was possible. Seems like in v2 that's not even an option anymore.