Finally, I figured it out. It's the problem big10p mentioned, when a loop is running too fast. a debuglog is very slow, "flip true" makes the whole loop slower, too.
So when used in a game with Timing and a nice filled mainloop everything works well.
Thanks again for all responses
So when used in a game with Timing and a nice filled mainloop everything works well.
Thanks again for all responses