You are not logged in.

#1 2024-09-04 12:54:33

Antonio225
Member
Registered: 2024-06-22
Posts: 26

mpv lags when playing games and hd videos

So about 4 days ago I had my CPU (Intel i5-8400 (6) @ 4.000GHz) going fine, it could play videos, games and KDE Plasma 6 animations (I'm talking about the minimize and maximize animations) just fine (because I don't have a GPU, actually I do but it's an AMD ATI Radeon HD 5770 and people said to get a new GPU instead of finding the drivers to make it work, so yeah my PC's not currently using the GPU, the CPU does everything). I think after an update I made with "pacman -Syu" my PC started to lag when playing videos in hd and games. Because when it ran fine, I sometimes did "htop" to see how the CPU runs, and all the cores went past 70% when running rendering stuff, now it doesn't go past 50% (And the RAM is using 3GB out of 8GB, so I mean, there is improvement that can be made). So I cleaned my PC from the dust, and yeah, there was a lot of dust to clean, but then it was still the same, it's still lagging when playing videos on mpv and games.

I noticed that when my PC didn't lag, my fan just spinned like crazy (I mean, of course it does), but now, it doesn't do that anymore, I can't hear them spinning like that, is it a clue? Can you help me out please? Thanks in advance.

Last edited by Antonio225 (2024-09-04 12:55:12)

Offline

#2 2024-09-04 14:57:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: mpv lags when playing games and hd videos

https://www.intel.com/content/www/us/en … tions.html has an UHD 630
Plasma on X11 or wayland? Does it make a difference?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
Please post the output of

qdbus6 org.kde.KWin /KWin supportInformation

Please post the output of

mpv some_porn.mp4

Offline

#3 2024-09-04 15:03:41

spacemannn
Member
Registered: 2024-08-08
Posts: 14

Re: mpv lags when playing games and hd videos

It sounds like you're having some heat problems. I'd suggest trying something to watch your internal temperatures to see if it is indeed throttling because of overheating.

This page ( https://wiki.archlinux.org/title/Lm_sensors ) should provide you with all of the information you need to do so, but to boil it down:

Install either psensors, xsensors, or coolercontrol and watch your sensors as you play an mpv video. (I just installed each of them to check, and they all looked good. I personally haven't had much luck with the built-in sensors widgets in KDE, but you may have a different experience.)

Check to see if any of your fans aren't running, and check whether your components (particularly your CPU) are redlining up to 100C, at which point they start to slow down.

Also in the wiki:
A lot of times there are additional temperature sensors and similar on your system, and you can make them viewable in you temperature monitoring program of choice via:
1. Install the lm_sensors package
2. run `sudo sensors-detect --auto` to detect your various internal sensors

Offline

#4 2024-09-04 16:12:52

Antonio225
Member
Registered: 2024-06-22
Posts: 26

Re: mpv lags when playing games and hd videos

Sorry I didn't specify, I'm on X11 (because since I don't have a GPU working, going on Wayland is not really an option because whenever I put a video on the web browser on Wayland it lags the entire machine last time I saw, so yeah X11).

When I did "mpv (file).mkv" it infact said something:

 (+) Video --vid=1 (*) (vp9 2048x1080 60.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 2048x1080 yuv420p
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.

[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
[osd/libass] fontselect: failed to find any fallback with glyph 0x1F35E for font: (sans-serif, 400, 0)
AV: 00:00:16 / 00:16:17 (2%) A-V: 11.322 Dropped: 287
Exiting... (Quit)

(I did CTRL+C to stop.) If I try with the "--profile=fast" it works fine.

I installed xsensors (and lm_sensors) and when I play the video the acpits are around 27°C to 29°C, the coretemp are all around 36°C to 39°C (The Package id 0 is 40°C to 41°C) and radeon is 30°C. I've noticed that if I run a game that's made in Unity, the coretemp goes up to 54°C to 60°C.

This is the output of qdbus6 org.kde.KWin /KWin supportInformation:

Informazioni per il supporto di KWin:
Le seguenti informazioni dovrebbero essere usate quando si richiede supporto su ad es. https://discuss.kde.org.
Forniscono i dettagli sull'istanza attualmente in esecuzione, le opzioni usate,
quale driver OpenGL e quali effetti sono utilizzati.
Pubblicare le informazioni indicate sotto questo testo introduttivo su un servizio paste bin
come https://paste.kde.org invece di incollarlo nella conversazione di supporto.

==========================

Version
=======
KWin version: 6.1.4
Qt Version: 6.7.2
Qt compile version: 6.7.2
XCB compile version: 1.17.0

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101013
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: false
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 10
font: Noto Sans,10,-1,0,400,0,0,0,0,0,0,0,0,0,0,1
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: KWin::X11StandaloneBackend

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 5
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
edgeBarrier: 100
cornerBarrier: 1
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseNothing
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseAndPassClick
commandWindow2: MouseActivateAndPassClick
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777250
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: true
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 1
windowsBlockCompositing: true
allowTearing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 75
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Number of Screens: 1

Screen 0:
---------
Name: HDMI-1
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60000
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Mesa
OpenGL renderer string: AMD JUNIPER (DRM 2.50.0 / 6.10.7-arch1-1, LLVM 18.1.8)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 24.2.1-arch1.1
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 24.2.1
X server version: 1.21.1
Linux kernel version: 6.10.7
Direct rendering: Requires strict binding: yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
trackmouse
screenshot
outputlocator
colorpicker
zoom
screenedge
blur
contrast
sessionquit
logout
login
slidingpopups
windowaperture
slide
maximize
fadingpopups
squash
scale
fullscreen
frozenapp
morphingpopups
dialogparent
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
kscreen

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
trackmouse:
modifiers: 

screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

blur:

contrast:

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

logout:
pluginId: logout
isActiveFullScreenEffect: false

login:
pluginId: login
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 200
slideOutDuration: 200

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

squash:
pluginId: squash
isActiveFullScreenEffect: false

scale:
pluginId: scale
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

morphingpopups:
pluginId: morphingpopups
isActiveFullScreenEffect: false

dialogparent:
pluginId: dialogparent
isActiveFullScreenEffect: false

windowview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
mode: 
partialActivationFactor: 0
gestureInProgress: false
searchText: 
selectedIds: 

tileseditor:
activeView: 
delegate: 
animationDuration: 200

overview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
filterWindows: true
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset: 
searchText: 

highlightwindow:

blendchanges:

startupfeedback:
type: 1

kscreen:


Loaded Plugins:
---------------
krunnerintegration
nightlight

Available Plugins:
------------------
BounceKeysPlugin
StickyKeysPlugin
buttonsrebind
eis
krunnerintegration
nightlight
screencast

When I did a pacman -Syu I remember something that ran mkcpio but I don't remember what the updates were...

Offline

#5 2024-09-04 16:32:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: mpv lags when playing games and hd videos

OpenGL renderer string: AMD JUNIPER (DRM 2.50.0 / 6.10.7-arch1-1, LLVM 18.1.8)

This very much looks likey you're (now) running on the geriatric radeon GPU which also doesn't provide any hardware decoder for the 1080p 60Hz VP9…

Offline

#6 2024-09-04 16:47:37

Antonio225
Member
Registered: 2024-06-22
Posts: 26

Re: mpv lags when playing games and hd videos

seth wrote:

OpenGL renderer string: AMD JUNIPER (DRM 2.50.0 / 6.10.7-arch1-1, LLVM 18.1.8)

This very much looks likey you're (now) running on the geriatric radeon GPU which also doesn't provide any hardware decoder for the 1080p 60Hz VP9…

Oh... So what should I do to... Like, not use it and use the CPU instead?

Offline

#7 2024-09-04 17:31:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,208

Re: mpv lags when playing games and hd videos

Your CPU has a GPU built in and said GPU is likely going to perform better than the external "GPU" (which is from 2009 while your processor and it's GPU are 8 years younger) your processor integrated GPU will vastly outperform the AMD GPU

Last edited by V1del (2024-09-04 17:34:38)

Offline

#8 2024-09-04 18:02:44

Antonio225
Member
Registered: 2024-06-22
Posts: 26

Re: mpv lags when playing games and hd videos

V1del wrote:

Your CPU has a GPU built in and said GPU is likely going to perform better than the external "GPU" (which is from 2009 while your processor and it's GPU are 8 years younger) your processor integrated GPU will vastly outperform the AMD GPU

Yeah... Kinda makes me laught because I bought that GPU in 2017... Yeah what a shame lol.

Btw how do I use the integrated GPU in the CPU instead of the 2009 one?

Offline

#9 2024-09-04 18:28:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,208

Re: mpv lags when playing games and hd videos

Plug the dedicated GPU out ??? profit.

If for some reason you can't immediately profit, check your UEFI whether the integrated GPU is disabled there and/or make sure no xf86-video-packages installed (yes that includes xf86-video-intel and xf86-video-amdgpu, do not install them) and you haven't generated a xorg conf for no reason.

Offline

#10 2024-09-04 20:18:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: mpv lags when playing games and hd videos

You can probably also just blacklist the radeon kernel module (juniper is actually a rebranded HD 5700 - pre-geography lesson…)

Kinda makes me laught because I bought that GPU in 2017

For $5 ? tongue
There's actually a chance the GPU still outperforms the IGP in some opengl games, but for desktop usage and esp. video playback, the IGP will do much better.
If you've access to your older logs, I'd not be surprised if you find you've been using it when things worked nicely.

Offline

#11 2024-09-04 20:47:32

Antonio225
Member
Registered: 2024-06-22
Posts: 26

Re: mpv lags when playing games and hd videos

seth wrote:

For $5 ? tongue

I hope I did lol, I don't actually remember.

Offline

Board footer

Powered by FluxBB