Skip to content
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

Super laggy when webcam is added #29

Closed
Aasikki opened this issue Dec 21, 2021 · 5 comments
Closed

Super laggy when webcam is added #29

Aasikki opened this issue Dec 21, 2021 · 5 comments

Comments

@Aasikki
Copy link

Aasikki commented Dec 21, 2021

Describe the bug
The interface has very low fps when camera is added, so low that it becomes unusable.

To Reproduce
Steps to reproduce the behavior:

  1. Add camera in settings
  2. Restart mobileraker as the camera won't load otherwise
  3. Lag

Expected behavior

Screenshots
Demonstration video: https://youtu.be/di9L0-6G0jo

Smartphone (please complete the followininformation):

  • Device: OnePlus 7 Pro
  • OS: Android 11 (Havoc OS v4.11)

**Mobileraker-Version
1.2.1 (4)

Additional context
My webcam is raspberry pi camera set to 1280x720 30fps

@Clon1998
Copy link
Owner

I can not reproduce this with my device. My guess is, that this is related to #10. Since the lib I am using doesn't drop missed frames and instead tries to keep up all of the UI starts to lag. Could you try to reduce the fps to 10 and see if this solves the issue?

@Aasikki
Copy link
Author

Aasikki commented Dec 23, 2021

I tried dropping the framerate to 10 and it got much better but still not perfectly smooth.

@Clon1998
Copy link
Owner

Okay, at least now I know it due to the camera widget.
As I said before, I am using a library that provides me the cam widget. I'll have to look into it in order to modify it to ensure that it drops frames on slow connection.

@Clon1998
Copy link
Owner

Clon1998 commented Jun 13, 2022

Can I get some feedback on the issue.
In the last few version i added responsive MJPEG and the normal streaming MJPEG that should resolve the issue.
Especially the responsive MJPEG should drop frames on a slower connection!

@Clon1998 Clon1998 closed this as completed Jul 3, 2022
@Aasikki
Copy link
Author

Aasikki commented Jul 3, 2022

Can I get some feedback on the issue. In the last few version i added responsive MJPEG and the normal streaming MJPEG that should resolve the issue. Especially the responsive MJPEG should drop frames on a slower connection!

Hello, sorry for late reply, haven't been printing for a while so couldn't test it :)

Went to test it today as I got mail from thw issue being closed but now have another issue preventing me from testing 😅 will post as another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants