@hoodedunicorn/python-fps-monitor
v1.1.0-alpha-2
Published
This is a Python script that uses the Pygame library to display the current FPS (frames per second) and system information such as GPU usage and CPU usage in a resizable window. <br> <h1>Dependencies</h1>
Downloads
6
Readme
Python FPS and System Monitor :video_game:
This is a Python script that uses the Pygame library to display the current FPS (frames per second) and system information such as GPU usage and CPU usage in a resizable window.
- Pygame
- Psutil
- Gpustat
- Install the dependencies by running
pip install pygame psutil gpustat
in the command line. - Install package via NPM package manager
npm i @hoodedunicorn/python-fps-monitor
- Run the script using
python FPS-Monitor.py
The script will display the current FPS in the top left corner of the window. The GPU and CPU usage will be displayed on the right side of the window.
You can resize the window to your desired size by clicking and dragging the edges of the window.
To exit the script, simply close the window or press the 'X' button in the top right corner of the window.
You can customize the script to display additional information such as GPU memory usage or CPU temperature. You can also change the font, text color and background color of the window to match your personal preferences.
This script is only compatible with NVidia GPUs. It will not work with other types of GPUs such as AMD or Intel. Additionally, it will only display information for the first GPU it detects. If you have multiple GPUs installed, you will need to modify the script to display information for all of them.
This script is a useful tool for monitoring the performance of your system while running resource-intensive applications such as games or video editing software. It is easy to install and customize, making it a valuable addition to any developer or gamer's toolbox.