[SOLVED] Dropped frames caused by subtitle rendering

  • In my latest test build LE 9.0 aren't any frames skips for subtitles:

    LibreELEC-S905.arm-8.90.5-12-gf54f8c3-K.tar

    I tested it with video form #1.


    BTW in log from from #1 aren't any frame skips. Frame skip is reported in log as:

    Code
    1. 10:47:11.431 T:4096036880 DEBUG: CRenderManager::PrepareNextRender idx:0 Skip:1 iter.pts:0.250 m_lf:9 lf:1071286228 latency:0.100 dvdClock:0.298


    Pls report any issue with kodi debug log.

  • In my latest test build LE 9.0 aren't any frames skips for subtitles:

    LibreELEC-S905.arm-8.90.5-12-gf54f8c3-K.tar

    I tested it with video form #1.

    I wish I could confirm that but I had other results. With 8.90.5 I still have stuttering on my Minix S912. No idea why the log doesn't show it but I see a few dropped frames and as it seems I'm not the only one. Some are sensitive and others not at all. I belive my eyes only.

  • I wish I could confirm that but I had other results. With 8.90.5 I still have stuttering on my Minix S912.

    This is different build with new fixies.

    And next time report only with log.

  • I am preparing LE 8.90.6 for S912.

    Thanks that's very nice! Will test it for sure!!

    Apple TV 4k - Vero 4k - Pi 3 | Yamaha RX-V483 | Sony 55XE9305 | Synology DS916+

  • Subtitle rendering issue is presented only in LE 9.0 for S912. It looks like issue with libhybris. In log I see lost of control for >100ms. I'll try to collect more precise debug information. Zero skips for testing video played by LE 9.0 S905.

  • Subtitle rendering issue is presented only in LE 9.0 for S912. It looks like issue with libhybris. In log I see lost of control for >100ms. I'll try to collect more precise debug information. Zero skips for testing video played by LE 9.0 S905.

    Thank you mate. It's nice to see some light at the end of the tunnel :)

  • Finally I have got the subtitle rendering issue evidence. Responsible for this issue is libhybris. Swapping buffers in rendering takes ages >36ms.

    At 24fps to show one frame takes 41.7ms, but with rendering subtitles took 43ms.


    Swapping buffers in S905 takes only 1ms.


    Quote

    14:07:00.947 T:4100100112 DEBUG: CApplication::Render - Flip()

    14:07:00.947 T:4100100112 DEBUG: CGLContextEGL::SwapBuffers - begin

    14:07:00.948 T:4100100112 DEBUG: CGLContextEGL::SwapBuffers - end

    14:07:00.948 T:4100100112 DEBUG: CApplication::Render - return

  • Finally I have got the subtitle rendering issue evidence. Responsible for this issue is libhybris. Swapping buffers in rendering takes ages >36ms.

    I'm so glad you have found evidence for the issue. Does this mean you don't need a debug log anymore ? I didn't had much time yesturday ( and now I'm at work ) but I was able to test your latest ( 8.90.6 ) buld for the s912 and I can say with confidence that the stuttering is still present with subtitles enabled. It doesn't matter if its embedded or external srt. I've used the same scene as it's the sample in #1. But this time double checked with both ( mkv) remuxes from the BD and UHD-BD. Same result.

  • For now

    I understand that you guys do this for free and I'm really appreciate it so it's just a question and I don't want to sound unpatient or something.

    Does "For now" means that you will continue to work to solve this specific issue for the S912 or that would rather mean the issue may be solved in the not so near future ?

  • Read warning in #1. Using libhybris and Android gralloc Mali driver this issue is unable to fix. If you want to use LE for S912 you have to tolerate subtitle stuttering.

  • avirex I don't think it'd be an easy task to solve. Libhybris for GPU means lots of trials and errors and I've already tried many things to overcome the swapbuffer delay. But maybe someone with a fresh look will find a solution for this...