I’m coding a small Multiplayer-Game with GLUT and Winsock. My Problem is, that i need to interrupt the MainLoop() while recieving the Gamedata from the other Player. Depending on how long the other Player needs to choose his next step, the execution is stopped for a long time.
During this time, my OpenGL Window hangs until the awaited string arrives. I’ve tried to modify the MainLoop Function with the MainLoopUpdate hack from http://sjbaker.org/steve/software/glut_hack.html , but i got the same problem when the execution of MainLoopUpdate is stopped.
Anyone has an idea how i could fix that? My Game is mostly 2D, and there are no changes in the Display Function while waiting for the other users input.
Thanks in Advance