frametimer-1.1.0
توضیحات
An accurate clock/timer for obtaining constant framerates (FPS)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | frametimer-1.1.0 |
| نام | frametimer |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | aib |
| ایمیل نویسنده | aibok42@gmail.com |
| آدرس صفحه اصلی | https://github.com/aib/frametimer |
| آدرس اینترنتی | https://pypi.org/project/frametimer/ |
| مجوز | MIT |
# frametimer
An accurate clock/timer that can be used to help obtain constant framerates. It uses a hybrid approach of sleeping for *most* of the required duration, then spin-waiting for the rest.
## Installation
```pip install frametimer```
(Or just grab the .py file, it's a simple module)
## Usage
```python
timer = frametimer.FrameTimer(60)
while run_main_loop:
dt = timer.tick()
update(dt)
...
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.3 | Python |
نحوه نصب
نصب پکیج whl frametimer-1.1.0:
pip install frametimer-1.1.0.whl
نصب پکیج tar.gz frametimer-1.1.0:
pip install frametimer-1.1.0.tar.gz