From: Yuan X. <xuy...@gm...> - 2007-06-03 13:01:53
|
Hi Joschka, > >> .... If the > >> application is too busy for SDL to create appropriate events, do you > >> think it would make sense to have an other application ("referee") that > >> connects to the server as a monitor and sends commands using the trainer > >> protocol? This way we could make the game kick of and do drop ball at > >> least... > >> I found this in http://www.libsdl.org/intro.en/whatplatforms.html "Linux and BeOS support the SDL_INIT_EVENTTHREAD flag which, when passed to SDL_Init(), asks the event loop to run asynchronously in another thread. This is useful for color cursors that respond even when the application is busy." But initializing SDL with SDL_INIT_EVENTTHREAD can not get clear effort ;-( If the monitor and server run on one machine, it seems OK. But I have some problems while connecting the monitor via the net. If there is no agent, the monitor works OK. If one agent connected, and the full scene message is received, but the prefix size of message can not read correctly! It reminds me what happened in the agentspark before. Is there anyone know the solution? -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |