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

Animations stop when resizing or moving windows #5791

Closed
XiongDa457 opened this issue Aug 7, 2024 · 4 comments
Closed

Animations stop when resizing or moving windows #5791

XiongDa457 opened this issue Aug 7, 2024 · 4 comments

Comments

@XiongDa457
Copy link

I made a my app have a custom GridLayout-like behavoir for displaying an arbitrary number of objects (since GridLayout doesn't support for). And I noticed that if I add animations to the objects, they stop moving until window resizing is over or the window stops being dragged.

No animations:

2024-08-07.14-07-23.mp4

With animations:

2024-08-07.14-07-54.mp4

It might be slightly hard to tell, but when I start resizing or moving the window, the animation essentially freezes (but the it seems to still be progressing in the background), then when I let go the animation just resumes at a further point.

@XiongDa457 XiongDa457 changed the title Animations Stop When Resizing or Moving Windows Animations stop when resizing or moving windows Aug 7, 2024
@Vadoola
Copy link

Vadoola commented Aug 8, 2024

It's hard to tell from your video and you don't mention, are you running this on Windows?

If so I'm wondering if it's related to this bug: #5720
I just added an animation tick example to my sample repo and notice the same behavior when click the title bar or moving the window on the animation tick example as I do on the event loop timer. I imagine it's all part of an issue with the event loop.

If you are running it on Windows have you tried on Linux? I don't seem to have this issue Linux.

@XiongDa457
Copy link
Author

Sorry for not mentioning it earlier but yeah, I'm running on Windows. I don't have a Linux system to test this on so I can't really say anything about that.

I took a look at the issue you linked and it does seem like the same problem. I'm also manually recreating a title bar, and it seems like the event loop hangs whenever the window manager is involved, whether its moving, resizing, or right clicking the titlebar.

@Vadoola
Copy link

Vadoola commented Aug 8, 2024

Maybe chime in on that bug and mention the resizing, so the information is all in the same place for whoever looks into fixing it.

@ogoffart
Copy link
Member

ogoffart commented Aug 8, 2024

Thanks for filing the issue. I'm going close this one as duplicated of #5720 which itself is a bug in winit.

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
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

3 participants