RK3328 4K HEVC stutter frame drop

  • Hey ilmich

    Tried out that image. Loads up and menus work a lot faster but its locked at 1920x1200 @ 60hz. This while plugged into my 4K Dell monitor.

    So far, progress but I'm assuming there can be fixes to allow higher resolutions. Even when playing videos that are 4K, I see it still at that resolution.

    Oh, I also noticed CPU was running at 600Mhz. Is that correct? I can't remember if it was or not. I also don't recall the DRAM speeds but it was running a lot faster in the menus so I assume it was running at a higher speed too.

    Thanks,

    Furman

  • Hi FurmanSK your observations are correct, in many cases the operations are accelerated via hardware (gpu, decoding) so before the bottleneck was the ram which at low speeds kept the cpu busy which had the task of waiting and synchronizing the texture movements and video streams. the ram now runs at 800mhz and the bottleneck has moved (even if with estuary I reach 30fps)
    the resolution problem is known, from the little I've seen there is a regression in kernel 6.6 which has impacts almost everywhere. I'm trying to understand more

  • Does the RAM run higher than 800mhz? Or is that the max? I can't remember off top of my head what these boards run at. I thought higher but yeah.

    What's the plan for seeing about the resolution being stuck at lower resolution?

    Thanks!

  • Hi, actually in the librecomputer source repositories I saw that I can try to increase the clock a little more.I'll do some tests.
    Regarding the resolution problem with my monitor, everything works correctly with libreelec 9.2 (which has the vendor kernel). With all other subsequent versions it doesn't switch me to 720p (I don't have a 4k device). When you can, can you also do some tests with libreelec 9.2? Just to better understand if it supports all resolutions and therefore be on the safe side by trying to understand the differences between vendor and mainline (the drivers have been rewritten but the starting point is the kernel vendor)

  • Hi, I've tried to put something on my Renegade (2GB version) and... the official version isn't good enough: as soon as an overlay appears (like: subtitles or the OSD) the whole system goes down in flames to a single digit rendering time (and has various "problems" and has green horizontal rows on load).

    The old beta here (2024/04/23) on the other hand is perfectly fine... it crashes fairly often (well, that's a given, it's a beta!), but when it's not crashing is playing nicely.

    It's just me ? (maybe my hardware is dying ?)

  • I'm still trying to figure out how to have a working LibreELEC.

    So, I've tried both the official 11 and 12 on my Renegade, this is how the loading image appears on my screen:

    Once the image booted up everything is fine but...

    The aforementioned beta -> occasionally crashes
    LibreElec 11.0.6 -> works fine (not tried much, seems stable), green loading
    LibreElec 12 -> no crashes, slow as hell when overlay occours, green loading

  • SixSixTwo what resolution? I imagine 4k. however there are known problems with the 3328 and unfortunately you have to be patient for the fixes. In the meantime, try with a lower resolution and/or try with another HDMI cable.

  • 4K with HLG and so on (almost all TV sets nowadays are like that).

    I know I have to be patient, I just wanted to highlight that there is a problem, a problem that was introduced later.

    The (unstable, at least for me) 2024/04/23 beta had no such problem.

    I've tried the latest beta and it still has green bars on loading and visible blockiness / artifacts during playback.
    It's a bit baffling that an older beta was working good (well, crashes aside) while not one but two releases are crippled and the current beta is just as broken.

    For the rest : tried with two HDMI cables and two microSD cards. Changing resolution doesn't seem to fix anything.

  • It's a bit baffling that an older beta was working good (well, crashes aside) while not one but two releases are crippled and the current beta is just as broken.

    It's a little disconcerting until you go in and see how much code has changed.

    As for the slowness with 4K, the subject of this thread which I imagine you haven't read to the end, it has been written that it also depends (but not only) on the DDR4 clock. the fix in question is being tested and will be released as soon as possible.

    in the meantime, you can try this old test build and see if it improves anything

    roc-3328-cc

  • It's a little disconcerting until you go in and see how much code has changed.

    As for the slowness with 4K, the subject of this thread which I imagine you haven't read to the end, it has been written that it also depends (but not only) on the DDR4 clock. the fix in question is being tested and will be released as soon as possible.

    in the meantime, you can try this old test build and see if it improves anything

    https://ilmich.libreelec.tv/test-images/roc-3328-cc/

    Is that the same test build I tried earlier in a past reply? I remember trying one and it didn't really make a difference and wouldn't run at higher resolution (4K, was set at 1920x1200)

  • Hey ilmich did you ever do anymore work on this? I got tied up with life and such and never got back around to testing anything.

    Would there be any new test builds or should I try a new nightly?

  • Unfortunately, I also had little time this year.

    In any case, and without any definite planning, I'm working on some small improvements (having said that the 4k problem is a known problem of the kernel used in libreelec 12, which should be okay with libreelec 13).

    I'll keep this thread updated when I have news.

  • Kodi generally aims to ship something before DevCon (so we can talk about it then) and in recent years this seems to be happening in March/April so the release is most likely to happen in Feb .. but no guarantees :)

  • hi FurmanSK if you can, try this build of libreelec 13

    roc-3328-cc

    where I've added some optimizations that I will send upstream.
    I did some testing and it works very well even in 4k. let me know if you notice anything strange.

    the main changes are
    - ddr4 at 800mhz
    - I improved the infrared receiver support by adding some remote controls that I created over time thanks to the users of my build for rk3228
    - I increased the gpu frequency to 500mhz
    - I enabled the multigen lru in the kernel

    the source is here

    GitHub - rockchip-with-unofficial-love/LibreELEC.tv at roc-cc-le13-wip
    Just enough OS for KODI. Contribute to rockchip-with-unofficial-love/LibreELEC.tv development by creating an account on GitHub.
    github.com