added a fps display to debug mode