SFPS - Smooth FPS.
Project description
SFPS - Smooth FPS
SFPS
is a small and very efficient Python library which helps calculate the real-time computing frame rate with a few lines of code.
You can install from PyPI:
pip install sfps
You can import and initialize SFPS
in your Python code:
from sfps import SFPS
sfps = SFPS(nframes=8, interval=1)
nframes
(int
,default=5
) : Number of the last frames, used for averaging.interval
(int
,default=1
) : Time interval in second.
And then you can call fps()
or raw_fps()
to calculate the real-time frame rate.
...
fps = sfps.fps(format_spec='.2f')
...
For usage details, please check SFPS
. You can also check an example here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sfps-0.0.0.tar.gz
(3.7 kB
view details)
Built Distribution
sfps-0.0.0-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file sfps-0.0.0.tar.gz
.
File metadata
- Download URL: sfps-0.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 620b2ceae711e87d952363c499da5b10f42074dd77a5c75672f82c425dd93b9b |
|
MD5 | 7adef0f5a2a4ab1690b8fb7505cbb165 |
|
BLAKE2b-256 | 6a8fd3d598ec92eec6952e2f12f8f50f2c0a2e123a706fe9f7259408e01994e7 |
File details
Details for the file sfps-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: sfps-0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99275416ee4c9b3b0930490c4155279b1e74c10c005aab24ac401159a9103da9 |
|
MD5 | ccf449f799d74f5fe8f9004cfdffab14 |
|
BLAKE2b-256 | 77a98dfa611627dde9ed642706b451d76cad363b2987b5c90dc816d50955a305 |