FPS of screen recording (and bodies detection) can't really go above your monitor refresh rate, because Windows just don't create more frames than needed.
However, its weird that your overlay is stuck at 40 fps. You probably have a setting in your gpu driver that limits the refresh rate of Hotscreen.