There, I got a problem of freezing of Stage while executing my java program,
which uses javaclient 2.0. I use Player 204, Stage 203
(Don't have choices, I need 2.0.x versions to be compatibles with javaclient
2.0).
My java program is a multiple thread of agent to interact with simulated
robots in stage,
in order to test special behaviour effects on the resolution of a problem.
So each agent
retrieve info from the laser, compute it and tell the robot where it has to
go (one agent=one thread,
with a call to runThreaded of playerclient into his own life cycle). Here,
I'm using
16 agents linked with 16 robots in stage, and they're supposed to move
forward,
avoiding obstacles. Simple.
But it freezes Stage at different moments, depending on values of the
variables :
interval_sim 100
interval_real 150
gui_interval 10
, and of fate (with same values of variables, execution freezes at different
times ; about 10 to 30 seconds).
I tried to slow the execution of my loop (with a thread.sleep) but it isn't
working well. I tried managing variables but it's not working either.
Is anyone have an idea?
Skuld
--
View this message in context: http://www.nabble.com/Stage-freeze-%3A-too-many-java-thread--too-fast--tp21979838p21979838.html
Sent from the java-player-users mailing list archive at Nabble.com.
|