Kodi Community Forum

Full Version: Kodi v19.4 (Matrix) the most powerful cpu goes slow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody,
first i had kodi 19.4 64bit on a htpc with intel N4100 CPU. Since the 4K videos were slightly jerky, but still watchable, I preferred to replace it with a htpc with amd A10-7700k CPU. the absurd thing is that with this CPU the videos are literally jerky, half a second of a shot, unwatchable. From userbenchmark the A10-7700K should be at least 40% more powerful than the N4100. (see the bench between the 2 cpus).
But the results with Kodi are drastically worse, can you tell me why? maybe I omitted to configure some settings in the kodi settings in the new htpc.

HTPC1 (acceptable)
- Motherboard with cpu onboard
- N4100 CPU
- 4GB DDR3 RAM
- 64GB mSata soldered storage
- Library streaming via SMB (local network)

HTPC2 (unwatchable)
- amd A10-7700K CPU (three times as much GHz)
- 8GB DDR3 RAM (twice as much as the first)
- 500GB SanDisk Pro Sata6 SSD (much faster then chinese soldered msata)
- Same SMB library, same lan (i unplugged the first pc and connected it to this one.)

Windows 10 pro 64bit is literally faster and more responsive on htpc2. So the performance shows. Boot time, browse time, apps performance are clearly better, But when I use Kodi, the htpc2 has a terrible time playing the files in 4K, never seen such slow shots.
thanks in advance.
(2022-08-31, 15:24)tipotimido Wrote: [ -> ]when I use Kodi, the htpc2 has a terrible time playing the files in 4K
Let's have a proper debug log, tell us how you connect to your display (hdmi, pass-through, wasapi, avr, audio etc.)
(2022-08-31, 15:24)tipotimido Wrote: [ -> ]should be at least 40% more powerful
Devil is in the details, but keep in mind that Kodi exercises the graphic engine heavily, a discrete gfx card might be the solution. In settings>video playback>sync & refresh off; render method software.
you right sorry.

The display is an LG 55 UHD LED TV.
The htpc is connected via HDMI (even the first htpc was).
The resolution is 3480x2160 (Windows and Kodi, as before).
Audio is passing throught HDMI (as first htpc).

Tested now video playback>sync & refresh off (was always); render method software (was Auto). I try multiple movie, try to see for 3/4 minutes. I think nothing is changed since before. Exactly same lag douring playback.
More detail about video file: h265 4K mkv files.

OK, i read better about my GPUs, and here too, i find a nonsense results... The GPU inside intel N4100 was an intel UHD 600 graphic processor, and the GPU inside the APU is an AMD Radeon R7 graphic, like 300% better then other one (Bench here  -> intel uhd 600 vs Radeon R7 Graphics).
So i find myselfe with hardware a lot better then the previous... but... unable to run 4K movies... I feel confused.

I try to run the movie from PC by "Media Player Classic" in boundle with K-lite codec pack. And the movie run fine.
So i tried to reduce the resolution from 3480x2160 to 1920x1080 and run kodi. But nothing change.

here the LOG. (i see that all 4 core goes to 100% when i'm in playback... so so strange, sems the GPU isn't requested...)
https://paste.kodi.tv/kezunoroqi.kodi
(2022-08-31, 15:24)tipotimido Wrote: [ -> ]From userbenchmark the A10-7700K should be at least 40% more powerful than the N4100.

Not CPUs or SSDs are not the biggest factor here, for decoding videos the GPU is the more important component.
So a debug log (wiki) for each Kodi device, playing a problem video, would be welcome.
You already provided one.
yeah, thank you.
hope someone can find something interesting in my log... maybe a solution about 4k video playback goes jerky.
If your Desktop Resolution: 1920x1080 32Bit at 60Hz is set, do you keep open more than one display..?
Without being no familiar at all with the windows side of things, it seems that your system (or rather drivers) don't support NV21 texture sharing, so it falls back to software decoding which is too expensive with your media.

I'm vaguely remembering issues with AMD drivers. Try to update them and search the forum for additional information. Alternatively, you could try rendering via pixel shaders - your system might be fast enough to do tone mapping via the GPU at the cost of a higher energy consumption.
(2022-08-31, 18:44)PatK Wrote: [ -> ]If your Desktop Resolution: 1920x1080 32Bit at 60Hz is set, do you keep open more than one display..?

only one display. (TV mentioned above)

Imade another test. I've opened my htpc and without cover I just installed a Nvidia GeForce GTX 650 (not a little GPU)... then i've downloaded the latest drivers from Nvidia site, and reboot the htpc with a fresh powerful GPU... and what? no-one-difference. The 4K clip inside Kodi remain literally jerky. So, a question born: are we sure that Kodi is demanding to the GPU and not only at the CPUHuh

this thing is so incredible.
This "most powerful" CPU is from year 2014 and is not suitable for 4K HDR (using its integrated graphics) because at year 2014 HDR does not exists.

BUT

The tings are much worse because YOU forced to run in Windows 11 and Windows 11 does not support this CPU:
https://docs.microsoft.com/en-us/windows...processors

This is no nonsense: Microsoft can take an arbitrary decision but this means that AMD does not provide graphics drivers for this CPU because no one is supposed to use it in Windows 11:
https://www.amd.com/en/support/apu/amd-s...-r7-series

As a result of all this you are using a VGA compatibility driver with disastrous performance and without DXVA video decoding (for 4K HDR).

xml:
INFO <general>: Running on Windows 11 21H2, kernel: Windows NT x86 64-bit version 10.0.22000.918

xml:
INFO <general>: Host CPU: AMD A10-7700K Radeon R7, 10 Compute Cores 4C+6G, 4 cores available

xml:
2022-08-31 16:58:46.207 T:4584 INFO <general>: DX:Big GrineviceResources::CheckNV12SharedTexturesSupport: extended NV12 shared textures is NOT supported
2022-08-31 16:58:46.208 T:4584 INFO <general>: DX:Big GrineviceResources::CreateDeviceResources: device is created on adapter 'AMD Radeon™ R7 Graphics' with D3D_FEATURE_LEVEL_11_1

xml:
2022-08-31 16:59:25.239 T:8876 DEBUG <general>: DXVA: unable to find an input/output format combination.
2022-08-31 16:59:25.239 T:8876 DEBUG <general>: DXVA::CDecoder::~CDecoder: destructing decoder, 0x17d224af6a0.
2022-08-31 16:59:25.239 T:8876 INFO <general>: DXVA::CDecoder::Close: closing decoder.
(2022-09-01, 10:05)tipotimido Wrote: [ -> ]just installed a Nvidia GeForce GTX 650

GTX 650 is from year 2012....

Obviously it does not have drivers for Windows 11
Sorry, I know you're from Team kodi, but you're doing a lot of misinformation. the Win11 drivers for the GTX 650 exist and (not Win10 I was wrong at the first post, I apologize) I downloaded them from the Nvidia site, as i can show here black on white.

Image

Then, The fact that it's from 2012/2014 doesn't negate the fact that it has 384 Shading Units and is a 33.86 GTexel / s DX12 card, so very capable of run 4K Videos in h265. (i never talk about HDR colors, i dont like HDR, My Display is not HDR and if i can i rip my disc without HDR).

I repeat, I wrote it before, Out of Kodi the videos in 4K I see them very well both with the R7 gpu and with the GTX650.
The problem is I have it inside Kodi. Therefore... the discourse of drivers + win11 lapses a priori.
The GeForce GTX 650 was a mid-range graphics card by NVIDIA, launched on September 6th, 2012. Built on the 28 nm process, and based on the GK107 graphics processor, in its GK107-450-A2 variant, the card supports DirectX 12. Even though it supports DirectX 12, the feature level is only 11_0, which can be problematic with newer DirectX 12 titles.

https://www.techpowerup.com/gpu-specs/ge...x-650.c894

Nvidia has excellent support and keeps updating old drivers with security patches only. That does not mean that everything will work perfectly in Win11 with 4K HDR:

Image
 
(2022-09-02, 10:20)tipotimido Wrote: [ -> ]i can i rip my disc without HDR

Sure, but log posted is 4K HDR:

Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc 


This graphics card only has 1024 MB of video memory then is *physically* not possible use it for DXVA2 4K HEVC video decoding because not has sufficient memory to store 20 reference frames at that resolution.
This limitation is independent of is exist driver for Windows 11 or not.