From: Stephane D. <Ste...@li...> - 2005-01-25 12:27:43
|
Hi, I am trying to accelerate time in order to run evolutionary experiments using player and stage 1.3.5. I am then not interested in real time, but in experiments that are as fast as possible. To this end, I launch stage with the -g and -f options. If I understand right, the best way to get information as fast as possible is to call SetDataMode(PLAYER_DATAMODE_PULL_NEW) on my client and then call a RequestData() before each Read(). The problem is that the experiment is slower (actually two times slower) than with default mode (22s for 100 time steps instead of nearly 11s for real time !). If I rather try to increase the frequency with a SetFrequency(100) for instance, it runs much faster (but I don't know whether I read fast enough or not) and then I loose 4s while trying to disconnect on a 5s long experiment... Does someone has an idea of how to solve this problem ? Does stage behave exactly the same way as with the default refresh values or are there side effects ? Last question, is it possible to control from the client the computation of the next step of the simulation in order to synchronize the server with the needs of the client ? thanks, stephane |