mpv-player / mpv-player/mpv

mpv framerate tanks after resizing window

Open
#8,613 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux vo:gpu:opengl vo:gpu:x11
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version: mpv 0.33.0
  • Linux Distribution and Version: Ubuntu 20.10
  • Source of the mpv binary: Ubuntu PPA
  • Window Manager and version: GNOME 3.38.3
  • GPU driver and version: nvidia 460.39, CUDA 11.2 on a nvidia quadro P2000
Reproduction steps

I have narrowed it down to being a one of cscale=ewa_lanczossharp, scale=ewa_lanczossharp and video-sync=display-resample. It sometimes happens with one enabled, and other times only with all. I have set hwdec=cuda, profile=gpu-hq, tscale=oversample, interpolation and ytdl-format=bestvideo[fps=60]+bestaudio/best in my mpv.conf

  1. stream a 60fps video
  2. resize window (e.g. fullscreen)
  3. wait
Expected behavior
  • No framedrops
Actual behavior
  • The estimated fps drops from about 60 to 30-40
  • Dropped frames (output) increase rapidly
Log file

Log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided reproduction steps and the linked log at https://0x0.st/-Pr6.log, comparing behavior before and after resizing. No source file, test, or entry point is named in the issue. Done means a 60fps stream no longer drops to 30–40fps or rapidly accumulates output drops after resizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.