Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-4334

Rework of D3D Init

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6.100
    • None
    • None
    • None

    Description

      <p>This should:</p><ul><li>Fix the startup of MediaPortal on some computers</li><li>Fix deadlock application.doevents</li></ul><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">It seems that on some computer, D3D (more enumeratesetting) is not fully ready when MP start when windows start.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">There is a native code to trying to find capapiblities for a hardcoded retry value but it failed.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">When debugging with Markus, even with a big increase value it will always failed.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So the code change, try to Init MP from quite start until D3D device is fully ready.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So we have retry loop of Init / OnEnumeration() / AdapterInfo until it find D3D device and after 20 retries, MP try to continue and will failed with D3D device not ready.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">So the new code try to find D3D stuff differently or more accurate.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">It seems that it works for Markus but need to know if it works for other user too.</p><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(240, 240, 240);">I have merge this stuff on my own build for regression. (If D3D is found directly, MP start as before).</p>

      Attachments

        Activity

          People

            sebastiii sebastiii
            HomeY HomeY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: