Factor frame rate monitoring out of the Viewer widget.