MangoHud is a performance overlay you can use on Desktop Linux, and it's what powers the built-in overlay on Steam Deck. A ...
Open the program, go to the settings, and make sure that the In-game overlay option is activated under General. The position of the FPS counter can also be defined there under Settings and HUD Layout.