Limit while loop at certain fps rate
Installation
pip install fps-limiter
Examples
Example #1
from fps_limiter import LimitFPS, FPSCounter
fps_limiter = LimitFPS(fps=15)
fps_counter = FPSCounter()
while True:
if fps_limiter():
print("current fps: %s" % fps_counter())
Example #2
from fps_limiter import LimitFPS, FPSCounter
fps_limiter = LimitFPS(fps=15)
while True:
if fps_limiter():
print("elapsed seconds: %s" % fps_limiter.get_elapsed_seconds())
License
Release files for fps-limiter 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fps-limiter-0.1.1.tar.gz | 1.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fps_limiter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / fps-limiter-0.1.1.tar.gz
| Download URL | fps-limiter-0.1.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36c09483b5aeecbca0f2ee7f0c1d59bd4a745c426c668a26c5685db94fa193f1
|
|
BLAKE2b-256 checksum How to use checksums |
ae4b3cede46b2bc95dcb9eba294955e161fd267d510aab4f5a35991582503e97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9
|
Release files / fps_limiter-0.1.1-py3-none-any.whl
| Download URL | fps_limiter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4927d3448fa558db4eb51998691a7e84ac982e653e1c887e348cceee9b7623ed
|
|
BLAKE2b-256 checksum How to use checksums |
fe8f24f08ddd2114f9e9c2e198582d4f7de1834da2981b21101c858d98a0566f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9
|