Plugin: RefreshRateChanger (2 Viewers)

Lightning303

MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    @morpheus_xx any comment on that?
    As this code is triggered by the DeviceSceneEnd event, i would expect that an surface is actually available. Is GetRenderTarget(0) returning null sometimes expected behaviour? Or is this a bug in MP2? Or is there a logic error in my code?
    What is the way forward on this issue?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,401
    6,972
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #92
    Sorry, I forgot about the question...

    While it is ok for the VideoPlayer to return a "null" Surface, it shouldn't be the case for the DX device. As the render target is associated with the swap chain, it shouldn't ever be null. Only while recreation of device it could be not initialized... But I'm not sure about this

    So I'd recommend to use: "Surface surface = player.Surface ?? GraphicsDevice.Backbuffer; if (surface == null) return;"

    Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).
     

    kilik360

    MP Donator
  • Premium Supporter
  • September 3, 2010
    574
    232
    Canada Canada
    Country flag
    Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).
    I agree with this, using your current AtmoLight MP2 plugin with DX11 build causes MP2 to lag as hell. Just my 2 cents :)
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,401
    6,972
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #94
    Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).
    I agree with this, using your current AtmoLight MP2 plugin with DX11 build causes MP2 to lag as hell. Just my 2 cents :)
    Does it still work at all? I mean there is nothing rendered by the DX9 device where the sample is grabbed from?
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    Sorry, I forgot about the question...
    No problem ;).


    So I'd recommend to use: "Surface surface = player.Surface ?? GraphicsDevice.Backbuffer; if (surface == null) return;"
    So using GraphicsDevice.Backbuffer instead of GetRenderTarget()? Gonna implement it and test it. If all goes fine i will release a new version with this.


    Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).
    I did some tests, but failed miserably. You indicated 2 possibilies one with a Bitmap1 and one using an ImageBrush to resize the frame. I want and need to resize the frame so i tried my hand on the ImageBrush. I had some code together but failed to tell the Brush what the image source should be. I tried the next day again and then gave up for the time being.


    I agree with this, using your current AtmoLight MP2 plugin with DX11 build causes MP2 to lag as hell. Just my 2 cents
    Well its pretty much just spamming your logs with errors :p.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,401
    6,972
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #99
    Zitat von morpheus_xx: ↑
    Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).
    I did some tests, but failed miserably. You indicated 2 possibilies one with a Bitmap1 and one using an ImageBrush to resize the frame. I want and need to resize the frame so i tried my hand on the ImageBrush. I had some code together but failed to tell the Brush what the image source should be. I tried the next day again and then gave up for the time being.
    I can support you, but we should continue in DX11 thread
     

    kilik360

    MP Donator
  • Premium Supporter
  • September 3, 2010
    574
    232
    Canada Canada
    Country flag
    @morpheus_xx Im currently testing my Pipo x7 and I encouter RRC problem with the Intel Z3736F in MP2. RRC in MP1, MPC-HC and KODI works flawlessly.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    M Installing Plugins Newcomers Forum 1
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    Similar threads

























    Top Bottom