FPS counter: compiles but not fully functional