Enlighten me, how could this possibly cause a crash if it literally stops processing for the entire game?get_string simply stops the game and waits for your dialog to be completed. This can cause many issues in your game and can even cause a crash.
It is only used for debugging because it is easier to get a simple string, quick and fast.
Logically, it shouldn't be. That's why I wroteEnlighten me, how could this possibly cause a crash if it literally stops processing for the entire game?
Genuinely curious here.
I believe this is because of interrupting other processes happening in the background.can even cause a crash.
get_string() and other similar synchronous message functions became noted as "debug-only" after iOS store, Google Play and other app stores moved to ban blocking messages starting around 4-5 years ago. They are known to cause ANRs on those platforms if allowed to display for more than a little while, but they still get to stay because they are too helpful in conventional debugging to axe completely.One is synchronous (halts the game), the other is asynchronous (doesn't halt the game).
I don't know if there are background reasons as to why they changed them to say "debugging only" but it didn't used to be like that.
Maybe there are some platform specific reasons that halting the game like that would be bad.