Remove useless calculations

This commit makes the CPU go from ~80% to ~40% (IDLE) on my rpi, running at 1920x1200. I'll see if I can get something more out of it. 

Are you still interested in this? I see that there's been no commits in over a year.
Under which license is this code?