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

MPV is visually dropping frames #870

Open
aslpavel opened this issue Dec 14, 2024 · 4 comments
Open

MPV is visually dropping frames #870

aslpavel opened this issue Dec 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aslpavel
Copy link

MPV is visually dropping frame (it is not really dropping them on the player side) this is not happening for the same file if I ran it in sway for example. I'm not really sure how to debug it, if you need more information please let me know

System Information

  • niri version: niri 0.1.10-1 (unknown commit)
  • Distro: Arch Linux
  • GPU: AMD 780M as part of AMD Ryzen 7 7840U
  • CPU: AMD Ryzen 7 7840U
@aslpavel aslpavel added the bug Something isn't working label Dec 14, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Dec 14, 2024

Well I'm not sure what I can do with this little info. I use mpv myself, works fine here.

@aslpavel
Copy link
Author

I have recorded tracy profile, never used this tool before so I have no idea where to look
niri.zip

@aslpavel
Copy link
Author

aslpavel commented Dec 14, 2024

I have just enabled variable-refresh-rate and I do not know if it fixed things or just hid the problem. But visually it looks much smoother, I have created another tracy profiler for comparison
niri-1.zip

BTW tracy GUI crashes on niri but runs on sway:

$ tracy
wp_viewport#16: error 2: source rectangle extends outside of the content area

tracy.log

@YaLTeR
Copy link
Owner

YaLTeR commented Dec 15, 2024

Thanks for the Tracy recordings.

I have recorded tracy profile, never used this tool before so I have no idea where to look

There's barely any niri work visible here. I suspect the problem is in how mpv schedules frames on your setup.

I have just enabled variable-refresh-rate and I do not know if it fixed things or just hid the problem.

This also hints at that.

Maybe you have a weird mpv display-resample setting? I suggest turning it off, especially when watching with VRR.

BTW tracy GUI crashes on niri but runs on sway:

For me it sometimes crashes like that on niri, but most of the time it runs fine. I suspect there's a race condition in Tracy itself and mesa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants