For some reason or the other, drawLine or drawPath will decide to take a hundred ms to do their job out of the blue. I'm quite lost to look for at this point, does anyone else have any ideas?

Here's the heavily timed paintEvent function: http://pastebin.com/BsyjsW8D and the sample output that happens: http://pastebin.com/U1abYLJu

You'll notice that the time will randomly, unevenly jump up for one of the calls out of the blue. Am I doing anything wrong? It's pretty poor performance in general.