1.23.0 Slow rendering times (1 Viewer)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    Aha, that is a good one! And I'm still on win7 so I'm going to check that out!
    Thanks so much!
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    And checking for the tool I already found it in my browserhistory, so not the first time I have this...
    Do you think that some part of some version of mediaportal can cause such a latency?
    Now testing 1.19 again, and part of me hopes that this has the same issues too, because checking all the changes if there's anyting suspicious is going to give me a severe headache I assume.

    One other thing sprung to mind: I see that there was a fix for setting the correct refreshrate (involved waiting for mediainfo to actually complete before using the result of it). It could be that because of that the refreshrate was not set most of the time and hence not triggering my issues...
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    There is a version that works on WIN10 : DPC Latency Checker

    Just running it on my dev PC :
    1582901035428.png


    About mediaInfo, i was able to trigger on my side but on some user a deadlock (more with madVR maybe) so triggering it with a delay can solve it and also HDR tone map too.
    Maybe you could try madVR and use his own DRR to see how it goes too ? :)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    I also found latencymon, some sites say its the best...
    Didn't test thoroughly with that tool yet, but a small test (after running MP 1.19 for a while) already showed the occasional spike...

    and deadlocks? brr... adding delay isn't usually the best option to handle those

    Isn't madvr more cpu/gpu intensive? It's a bit of a low-end video card in my htpc...
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Delaying and in a thread mostly if I remember :)
    Yes, now that I'm reading you, I think I used this one too.
    For madVR on his default setting can work :p need to be tried, for sure, if we set up some different option than default one, yes need more GPU power :p
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    perhaps i'm being really picky now, but just noticed juddery video playback with 1.19 too. MP restart didn't help, but restarting pc did...
    Render time was about 2ms in that case, and no dropped frames, so only a minor annoyance...

    and @Owlsroost : I remember vaguely that you posted some explanation why in older windows you had to resort to some trickery to change the refreshrate, but I couldn't find it any more, do you remember that?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    There is something that seems to not needed anymore in MP code from Win10, it was an added hack code (Fix DWM if I'm not wrong) maybe this you are talking about ?
    @Scythe42 or @Owlsroost talk about and it is involved in internal DRR

    C#:
        public static void FixDwm()
        {
          if (!OSInfo.OSInfo.Win8OrLater())
          {
            try
            {
              int dwmEnabled = 0;
              DwmIsCompositionEnabled(ref dwmEnabled);
    
              if (dwmEnabled > 0)
              {
                Log.Debug("CycleRefresh: DWM Detected, performing shenanigans");
                ThreadStart starter = KillFormThread;
                var killFormThread = new Thread(starter) {IsBackground = true};
                killFormThread.Start();
              }
            }
            catch (Exception ex)
            {
              Log.Error("CycleRefresh: FixDwm exception {0}", ex);
            }
          }
        }
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    Ok, just got the slow rendering times also with 1.19... talking about a wild goose-chase...
    Now to figure out what else had changed besides updating mediaportal in the last couple of months...
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    Ok, I'm officially out of ideas.
    Tried fixing all the suspicious things in the refreshratechanger sources, no effect,
    Checked all logs if I could spot anything different in good playback and bad playback: nothing found, and I've analyzed quite a lot.
    Latency is perfectly ok when framedrops are huge...
    Only thing (and I'm rather reluctant to do) is a complete reinstall and hope for the best....
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Sorry :( does it happen with other player too?
    Still MP use more memory than mpchc for ex because of GUI engine.
    Did you see memory usage of MP when it hapoen and the one from GPU card with gpuz?
    And maybe worth upgrading to win10 for testing like win7 is no more supported?
    Good backuo to restore it and you don't want win10.

    Tapatalk
     

    Users who are viewing this thread

    Top Bottom