Added concept of debug mode. abstracted FpsMeter to its own class