Add FPS counter to demo program