-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance drop on M1 Mac #99
Comments
Are you using an arm64 Python together with building pyvirtualcam from source? If so, then any performance drop is unexpected. Can you comment on how you observed the performance drop exactly? |
Yes, using arm64 Python together with building from source. Followed these steps to build: git clone https://github.com/letmaik/pyvirtualcam --recursive From the beginning when I use virtual camera in any video app (skype, zoom, etc) the output is very low FPS and laggy. |
Seems to be the same issue discussed here: #94 EDIT: Would be good to confirm the exact apps you tested with. The referenced discussion says the issue only appears on Chromium/Electron-based apps, so not Zoom. |
Also, please check if you see the same issue using OBS directly without pyvirtualcam. |
Works on Zoom and Webex (desktop app) No issue using OBS directly without pyvirtualcam in all cases. |
I have same issue on M1. on intel, no issue I have found this problem on line 162-164 of this file. |
@avinashsureka Can you clarify what you mean by "on Intel"? Do you mean on an M1 mac but running an Intel Python? |
it runs well on intel mac, but same issue like as #94 on M1 mac |
@IDDD-Dennis @avinashsureka Could you let me know your macOS versions for both Intel and M1? I don't have an M1 myself, so it's going to be hard to debug this, but at least gathering enough info would be helpful. |
@letmaik |
Updated M1 Mac to macOS Monterey 12.6 and still getting issues |
@letmaik How are you? Couldn't you resolve yet? |
@letmaik I found the reason. |
@avinashsureka Great that you found the issue! Might be worth checking the source code of OBS to see how they determine time for the frames. |
For reference, this is the code that details some of the expectations on the timestamp, which indeed has to be nanoseconds: |
Wow, fantastic find there @avinashsureka 👏 👏 👏 |
Describe the bug
Noticeable performance drop when using pyvirtualcam on M1 mac versus Intel mac. Output stream is laggy and has low FPS. Didn't change any of the source code so not sure where I am going wrong.
The text was updated successfully, but these errors were encountered: