New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: AutoPlay needs to be made concurrent #11269
Comments
Opening a can of worms.. v1: Show blocking popup with our rotationg arrow animation and a cancel button while it does its job |
Let's talk about next turn, since it had the same problem How does next turn work?
Sounds like you want something similar - only in your case you can replace the world screen on every turn, but keep it "read only" |
That is to say - add a onTurnComplete callback parameter to next turn |
The way we made it "read only" in the past was by changing the viewing civ... Could we set the viewing civ to none and set the selected civ to the original civ like in Spectator? |
No, we just set isPlayersTurn to false
|
Why did I not realize this? AutoPlay already does that in order to lock the screen. |
Problem Description
Using AutoPlay in the later game causes the game to freeze since the AI play is being done on the same thread.
Related Issue Links
#10315
Desired Solution
The solution to the problem is to move the AutoPlay to another thread. However I believe this will cause a problem if we allow the player to continue making clicks and movements to the game. Therefore, I am led to believe a more elaborate movement-locking feature would need to be implemented.
The text was updated successfully, but these errors were encountered: