Added a bunch of optimazations and a fps tracker