in reply to Deep recursion in Tk repeat

you should only call refresh once per cycle, be the cycle made of 1 movement of a louse or 50000 lice. haven't touched tk for a long time, so can't give you code unfortunatelly.