You’re doing some ungodly things to the timer 100 times per second . You set it to looping but you reset it. And then you draw the results for 5 seconds. Did you mean to: