code optimization weekend yay, got about 40 fps back