Forum Discussion
RokuKC
10 years agoRoku Employee
"ankitgaur" wrote:
Right now I am working on an app, "Match 4" game which mimics the famous connect 4 game.
The problem we are facing is that the AI is build on MTD algorithm and code is perfectly tested. Its just sometimes machine gives, Execution timeout (runtime error &h23) while calculating best move.
Is there any way we can increase this time by some code? Please revert asap for some insight.
If you are writing a Scene Graph UI, best practice is to run any non-trivial calculations (such as game AI) on a task thread, and not in the render thread.
Otherwise the UI will not be responsive to the user.
https://sdkdocs.roku.com/display/sdkdoc ... ph+Threads