I just became aware that the biggest factor slowing my game is the function speed.
I assume reducing the number of lines in any given function should help to minimize this.

Do you have any general tips on reducing function complexity?