You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks!!!☺️
在 2020年10月22日,10:41,Sagar Patil <notifications@github.com> 写道:
This better belongs on StackOverflow, but I'll answer the question anyways.
In order to run a python loop at a certain FPS, you can delay based on the time taken for a process.
import time
MAX_FPS=60
MIN_FRAME_TIME=1/MAX_FPS
while True:
start = time.time()
# screen capture
time.sleep(max(0, MIN_FRAME_TIME - (time.time() - start)))
Hope this helps :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#181 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMY3RA3NXH4XAJOTNG7FVRTSL6LWDANCNFSM4QAZVOZA>.
Is there any way to capture the screen with a specific fps by applying mss?
The text was updated successfully, but these errors were encountered: