- Is your
while ()
loop under the “Animation” Thread? - If it is so, you’re better off calling noLoop() in place of that loop.
- And have your other Thread calling loop() or redraw() instead of
nextMove = true;
.
while ()
loop under the “Animation” Thread?nextMove = true;
.