Menu

Adding a live FPS counter to a tiny USB PC screen (and the update bug that came with it)
📰

Adding a live FPS counter to a tiny USB PC screen (and the update bug that came with it)

DEV Community: python·Emir Mrkaljević·10 days ago
#wp6m28IQ
#devtopython#devto#dev#release#panelos
Long article (404 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.