Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rmi1974/282da3b3173ed853707a36f49c071539 to your computer and use it in GitHub Desktop.
Save rmi1974/282da3b3173ed853707a36f49c071539 to your computer and use it in GitHub Desktop.
Poor man's FPS counter for games running with Wine #wine #debug

Poor man's FPS counter for games running with Wine

Install OSD Cat:

sudo dnf install xosd

Run the game:

WINEDEBUG=+fps wine mygame.exe 2>&1 | tee /dev/stderr | \
    grep --line-buffered "^trace:fps:" | osd_cat --lines="2"

You should see two red lines displaying the framerates. The last one swapchain_gl_present should be the correct value of your framerate.


Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment