I have a game loop, with two functions, Render() and Tick(). Tick() is a conditional function with many other objects interacting within this, and runs nearly 30 times before Render(), which draw frames onto the screen, is run 1 time. That's a close 1:30 ratio for those two functions, respectively.

I wanted to create a dialog that asks for user name input inside Tick(). My hypothesis is that while the game screen is running Render() for background rendering, I can also run Tick() and check both for user input and object interaction. And once the user finishes input and executing a specific command, I can dismiss the dialog, continue object interactions, and continue rendering normally.

However, my conclusion is that my hypothesis is flawed, but I have no clue to how to fix this. I have tried a few implementations on my Android phone, and get a variety of different results. For example, sometimes the dialog shows up, but the rendering is out of sync. Sometimes, the dialog failed to appear, but the rendering is working nicely. There was one extremity that causes both Eclipse IDE and my Android phone to freeze, and that was when I was trying to implement a synchronized wait-notify method, and resulted in hundreds of thousands of threads running in parallel.

In short, implementation is currently bugged with my hypothesis. I would like for some help in figuring out how I should split my game logic, so that I can get user input, check for object conditions, and render frames onto the screen, without being so flawed?

Thanks in advance.

If TL;DR, I'm in a month-long developer's hell, and I have been unable to successfully implement my plans. Please help me.