add fps for debug and slight performance enhancement