Subtitles issues v1.3.0.0 | Page 2

Discussion in '1.2.x' started by burr, July 24, 2012.

  1. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    When talking with Tourette about the issue :
    1) D3DERR_INVALIDCALL - more infor would be needed. He needs to use DirectX debug logging from the DirectX itself to be able to see why the call is invalid
    2) Timeout=1,84467440737096E+19 <--- almost infinite subtitle timeout - not sure how it can happen



    Since all is working with DVBSub2 but maybe something wrong with DirectX and new implementation in DVBSub3.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    DVBSub2/3.ax aren't using DirectX (althou if I would have some extra time they would be optimized :)).
     
    • Like Like x 1
  4. burr
    • Premium Supporter

    burr MP Donator

    Joined:
    May 13, 2006
    Messages:
    175
    Likes Received:
    47
    Ratings:
    +47 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I have tested your build to fix the enumeration exception and this error is not there anymore but the directx exceptions still remain.

    I have also tested to do a clean install of the client but still the same.
     
    Last edited: September 5, 2012
    • Like Like x 1
  5. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    Last edited: September 5, 2012
  6. burr
    • Premium Supporter

    burr MP Donator

    Joined:
    May 13, 2006
    Messages:
    175
    Likes Received:
    47
    Ratings:
    +47 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Do i have to download directx SDK to get to debug mode, i can't move the slider when i open "directx.cpl"?
     
  7. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,270
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,229 / 9
    Home Country:
    France France
    Show System Specs
    Ah good question, it's possible i have the sdk and i can move the slider.
     
  8. burr
    • Premium Supporter

    burr MP Donator

    Joined:
    May 13, 2006
    Messages:
    175
    Likes Received:
    47
    Ratings:
    +47 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    The SDK was the trick here is the logs

    00020862 20:46:06 [3524] Direct3D9: (ERROR) :D3DUSAGE_DYNAMIC cannot be used with managed vertex buffers
    00020863 20:46:06 [3524]
    00020864 20:46:06 [3524] Direct3D9: (ERROR) :Failure trying to create Vertex Buffer
     
    • Like Like x 1
  9. Scythe42
    • Premium Supporter

    Scythe42 Retired Team Member

    Joined:
    June 20, 2009
    Messages:
    2,065
    Likes Received:
    2,632
    Gender:
    Male
    Occupation:
    Professional Hacker
    Location:
    Berlin
    Ratings:
    +2,724 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Dynamic Textures cannot be used with a managed D3D Pool. Or in D3D terms. D3DUSAGE_DYNAMIC and D3DPOOL_MANAGED are incompatible.

    In this case it's about the Vertex Buffers. Static Vertex Buffers are placed into video memory and dynamic ones in the AGP memory. If D3DUSAGE_DYNAMIC is not specified the vertex buffers are made static.

    The only reason to use dynamic vertex buffers is that you don't have to lock them. Locking has huge performance penalties as the lock forces a wait until the GPU finished reading vertex/inde data from the buffer before control is given back to an app. Locking a static buffer several times per frame prevents the GPU from buffering rendering commands. Without buffered commands the GPU remains idle until the app finished filling the vertex buffer/index buffer.

    Normally the vertex or index data should not change. There are of course applications where this is needed on every frame. This is the only reason to use D3DUSAGE_DYNAMIC.

    So if we don't change vertex/index data no need of D3DUSAGE_DYNAMIC should be given. Need to take a look at the code itself what we do with the vertex buffers. But honestly the vertex buffer should be the always the same. At least during one frame. Locking between frames would be OK, but still has performance penalties.

    Subtitles should be rendered to a texture, and the texture is displayed with the same vertices anyway. Don't really see the need to change the vertices here. Rendering each letter as it's own object would be a bit of an overkill. Rendering them to a texture and them pumping this texture to the GPU should be faster.

    I need to take a look at the code itself to see what we are doing. But if this can be fixed easily I guess as it seems to be introduced recently. But let me take a look at the code first.

     
    • Like Like x 2
  10. burr
    • Premium Supporter

    burr MP Donator

    Joined:
    May 13, 2006
    Messages:
    175
    Likes Received:
    47
    Ratings:
    +47 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Have you had any time to look at the code?
     
  11. Scythe42
    • Premium Supporter

    Scythe42 Retired Team Member

    Joined:
    June 20, 2009
    Messages:
    2,065
    Likes Received:
    2,632
    Gender:
    Male
    Occupation:
    Professional Hacker
    Location:
    Berlin
    Ratings:
    +2,724 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Not yet, currently in the hospital. But I didn't forget this.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!