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

Out-of-Sync and Overlapping animations #326

Open
LGFae opened this issue Jun 2, 2024 · 3 comments
Open

Out-of-Sync and Overlapping animations #326

LGFae opened this issue Jun 2, 2024 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@LGFae
Copy link
Owner

LGFae commented Jun 2, 2024

Hey there, so I am not sure whether it's related but I suppose so, so I'm reopening this weird swww crash issue.

Now, weirdly, after a bit of swww-daemon --format xrgb running, the monitors (I've got 3) get out of sync and what's more annoying, the wallpapers (I use animated gifs from waneella start overlapping randomly (see the screenshots of two of my monitors for both being out of sync and overlapping wallpapers).

swappy-20240602-155556
swappy-20240602-155602

Do you happen to have anything I could try / provide to help debug this issue? Should I start a new issue or is there any related one I just blindly missed?

Any help appreciated. No matter these issues (this happens after 20min or 1 hour or few hours sometimes, and restarting the daemon fixes it) I still enjoy swww dearly!

Cheers

Originally posted by @shinobiultra in #310 (comment)

@LGFae LGFae added the bug Something isn't working label Jun 2, 2024
@LGFae LGFae changed the title Overlapping animations Out-of-Sync and Overlapping animations Jun 2, 2024
@LGFae
Copy link
Owner Author

LGFae commented Jun 2, 2024

@shinobiultra, what happens if you just call swww clear instead of restarting the daemon, does that also fix it?

I think the issue with overlapping might be that we are not properly waiting for the animations thread to exit after receiving a new img request.

Regarding the monitors being out-of-sync, do they all have the same configuration (resolution and refresh-rate)? Right now, we only keep them in sync if that's the case.

@shinobiultra
Copy link

Thanks for such a fast reply!

@shinobiultra, what happens if you just call swww clear instead of restarting the daemon, does that also fix it?

I'll try it as soon as it happens next time.

Regarding the monitors being out-of-sync, do they all have the same configuration (resolution and refresh-rate)? Right now, we only keep them in sync if that's the case.

I did not realize this, so no, they all have different resolutions and different framerates. What happens in such a case then?

@LGFae
Copy link
Owner Author

LGFae commented Jun 2, 2024

I did not realize this, so no, they all have different resolutions and different framerates. What happens in such a case then?

We don't keep them in sync in this case. What we are currently doing is bundling together all monitors that have the same resolution in one Vec and updating all of them in sync. This is because they all have the exact same image. When the resolution changes, we need to resize the image, so it isn't the same anymore, and thus, monitors with different resolutions go with different Vec. I think we can improve this though and keep them in sync even if all monitors are different.

Framerates actually don't matter for the current implementation, but if we sync them up the animations would run with the slowest monitor's framerate.

@LGFae LGFae added the enhancement New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants