tildearrow / kwin-lowlatency

archived - X11 full-screen unredirection and lots'a settings for KWin
373 stars 10 forks source link

kwin slows down to crawl when playing full screen video in mpv #89

Closed sashaaaaaaaaa closed 2 years ago

sashaaaaaaaaa commented 4 years ago

Basically you get 18fps if you're playing a video full screen so if you wanna watch a video on another screen while doing something on the other it's impossible in full screen with the low latency version

sashaaaaaaaaa commented 4 years ago

Oh I see this has already been mentioned here: https://github.com/tildearrow/kwin-lowlatency/issues/7#issuecomment-630726826

tildearrow commented 4 years ago

Hmm... This appears to be caused by a usleep code that runs when full-screen unredirection is active (to prevent the compositor from taking 100% of the CPU).

Let me see if I can add a way to detect multi-monitors...

tildearrow commented 4 years ago

Please try with latest commit from Plasma/5.19 branch (if you are on 5.18 tell me). I think I may have added a fix.

sashaaaaaaaaa commented 4 years ago

Yeah that's much better it only dips about 10fps playing now with vsync on with the proprietary nvidia driver.

and if you turn vsync off and turn on the forcecompositionpipeline from the nvidia driver instead, it goes up to 100fps fullscreened. like when you don't have that option turned on.

Kodehawa commented 4 years ago

It fixes it for me. I mean it does slow down a bit still, but not to a crawl.

tildearrow commented 2 years ago

Fixed in 5.22+ with the rewrite.