graphics optimization attempts, ok to yell at me