The small 3.5 inch USB screen in my PC case runs a tray app I wrote called PanelOS. It shows CPU and GPU temps, watts, RAM and VRAM, a fan, and the song that is playing in the Spotify desktop app with its cover. The most requested thing was simple: show the FPS of the game I am playing.
Where the number comes from
I did not want an overlay or to inject anything into games. Windows already reports every frame a program presents through ETW (Event Tracing for Windows). PanelOS listens to those present events, keeps only the ones from the app in the foreground, and counts them per second. No hooks, no game files touched.
If the trace can't start (for example without the needed rights), the screen shows "--" instead of a made up number. I would rather show nothing than a wrong FPS.
Keep it optional
Not everyone wants FPS on a screen that is mostly about temps and music, so it is a "Show FPS" toggle in Settings and every theme has a spot for it.…