Concept: Switch MP2 to D3D11/D2D rendering (3 Viewers)

breese

Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    66
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Replaced after running correct test 2

    Norm.jpg Max.jpg
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #52
    Interesting...
    While there is a difference between Norm and Max (Max has lots of delays on screen), Normal mode shows a Higher GPU usage.

    View attachment 159832 View attachment 159831
    There could be exceptions while rendering. Older version used "Flip.DoNotWait" for "max performance" which caused flushing rendering while scene was not fully completed. It seems you are using this older version. Try the one from first post here (#2)!
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #54
    Please make the screenshots while MP2 has focus. If the window doesn't have focus there is a 10ms delay added to reduce render speed.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #56
    One screenshot of my work PC: it has a 16:10 display.

    Here you can see, that the effect is not scaled properly: the shadow of large tile is to short on bottom. On screenshot of Lehmden (1024x768) it's even more visible. I have to check how to apply transforms here :)

    D2D_Perfomance.jpg

    As long as the fps < video playback rate (usually 50fps here in PAL region), the effects will cause dropped frames. So for a good usage we must get > 50 fps.
    If this is not possible, I thought about a "IsEnabled" property on effects. We then could turn either all or some of them off for performance.
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    I would opt for an additional 'automatic' setting. If current FPS < screen refresh rate then disable effects. Will try to test on my slow laptop in the next days...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #58
    I have attached a new testbuild #3 to first post.

    For all who provided frame rates already, please do the same with the new version. I did some optimizations (effects caching and other visual structure) to hopefully improve performance. Some bugfixes included.
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Tested the latest build but I still get some random crashes.

    Crash-Log:
    Protokollname: Application
    Quelle: .NET Runtime
    Datum: 06.01.2015 20:53:34
    Ereignis-ID: 1026
    Aufgabenkategorie:Keine
    Ebene: Fehler
    Schlüsselwörter:Klassisch
    Benutzer: Nicht zutreffend
    Computer: Sebastian-PC
    Beschreibung:
    Anwendung: MP2-Client.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Threading.LockRecursionException
    Stapel:
    bei System.Threading.ReaderWriterLockSlim.TryEnterWriteLockCore(TimeoutTracker)
    bei System.Threading.ReaderWriterLockSlim.TryEnterWriteLock(TimeoutTracker)
    bei MediaPortal.UI.SkinEngine.DirectX11.GraphicsDevice11.Reset()
    bei MediaPortal.UI.SkinEngine.DirectX11.GraphicsDevice11.Render(Boolean)
    bei MediaPortal.UI.SkinEngine.GUI.MainForm.RenderLoop()
    bei System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
    bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    bei System.Threading.ThreadHelper.ThreadStart()
    Is this because of my GFX (Intel)?

    Screenshot (Default):
    1.jpg

    Screenshot (Max Performance):
    2.jpg
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Repeation of test with VisualBrush version.

    Test1: Average
    test1.jpg
    Test2: Max.
    test2.jpg

    Performance seems much better, but I face a problem now. After start of MP2 there are no buttons, they appear only after moving with the mouse over their position (see screenshot, where I moved my mouse only over the movie button):
    Unbenannt.png
    Edit: The problem only occurs randomly. Sometimes no problem after restart ... strange
     
    Last edited:

    Users who are viewing this thread

    Top Bottom