clean up FPS logging code