[other] Problems with dropping frames with EVR (2 Viewers)

OnkelChris

Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Re: Problems with dropping frames with EVR

    Here's the DLL to match Scythe's proposal:

    Code:
    if (*pNextSampleTime > (m_rtTimePerFrame/4))
    
    to
    
    if (*pNextSampleTime > m_rtTimePerFrame)

    Please test and report back.


    Posted this a page ago ;)

    What about scheduler.cpp... If changing this part too:

    Code:
    if (fabs(p->pPresenter->GetDisplayCycle() - timePerFrame/20000) < 0.0015)
          {
            delay = hnsSampleTime[B]*3/4[/B];
          }
          else
          {
            delay = hnsSampleTime[B]*2/3[/B];
          }

    ends in less dropped frames on my ION. Are there any problems in this?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Re: Problems with dropping frames with EVR

    Posted this a page ago ;)

    Forum software said that it is not a valid attachement. I was unable to download it.

    What about scheduler.cpp... If changing this part too:

    Code:
    if (fabs(p->pPresenter->GetDisplayCycle() - timePerFrame/20000) < 0.0015)
          {
            delay = hnsSampleTime[B]*3/4[/B];
          }
          else
          {
            delay = hnsSampleTime[B]*2/3[/B];
          }

    ends in less dropped frames on my ION. Are there any problems in this?

    I'll test it, but why did you change the 1:2 area (or did you test that as well:))?
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    VMR9 + Vista / W7 -> tearing as no exclusive DX mode is used.
    Ahhhh yes I remember that now :oops:

    Well perhaps we could force Atom users to use XP :p I will butt out now but hope this is sorted as I am currently looking at getting an Atom based machine for a bedroom HTPC...
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Re: AW: Re: Problems with dropping frames with EVR

    I'll test it, but why did you change the 1:2 area (or did you test that as well:))?

    Damn. The forum is shutting down my attachments :p

    Yeah, I think I tested this... 25Hz movie on 50Hz screen?

    My head is a bit overloaded at the moment, so I am asking if my changes will break some other things...
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Re: Problems with dropping frames with EVR

    Here's the DLL to match Scythe's proposal:

    Code:
    if (*pNextSampleTime > (m_rtTimePerFrame/4))
    
    to
    
    if (*pNextSampleTime > m_rtTimePerFrame)

    Code:
    if (fabs(p->pPresenter->GetDisplayCycle() - timePerFrame/20000) < 0.0015)
          {
            delay = hnsSampleTime[B]*3/4[/B];
          }
          else
          {
            delay = hnsSampleTime[B]*2/3[/B];
          }

    ends in less dropped frames on my ION. Are there any problems in this?



    Both changes seem to work on a quick test (I'll continue to test more). DLL attached (make sure that version in log is 1.1.1 when testing).

    We are mainly interested to hear if ION is behaving any better with these sceduling values. As well that these aren't breaking current SVN behavior on high end systems.
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Problems with dropping frames with EVR

    sry for spamming, but if downloading your dshowhelper.dll_timin_patch2.zip, I get some weird patch in it...

    it seems to be one of mine with drop frames with -5500000 and so on...
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Problems with dropping frames with EVR

    sry for spamming, but if downloading your dshowhelper.dll_timin_patch2.zip, I get some weird patch in it...

    it seems to be one of mine with drop frames with -5500000 and so on...

    Thanks for notifying. I did indeed zip wrong .patch file, but now that is changed to the correct one. The DLL file itself is the correct one. I guess I should go to sleep...
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Problems with dropping frames with EVR

    please wait 2 more minutes and test this one on your highend machine... :)

    changed this

    Code:
    if (fabs(p->pPresenter->GetDisplayCycle() - timePerFrame/20000) < 0.0015)
          {
            delay = hnsSampleTime/2;
          }
          else
          {
            delay = hnsSampleTime/4;
          }

    and this

    Code:
    if (*pNextSampleTime > m_rtTimePerFrame)


    Please all ION users test. It seems to work good with less changes (on lowend)

    EDIT:
    patch inside
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    dshowhelper_timing2 works best and with only a dropped frame here and then on 1080i :)
     

    chrholm

    Portal Pro
    June 20, 2005
    64
    2
    46
    Copenhagen
    Home Country
    Denmark Denmark
    Timing2 is good on my Atom system as well. Less than 1 dropped frame in every 1000 frames. I even only get a couple of dropped frames with shift+1 running, while I would get a lot more with the latest SVN when the grafs were running.

    I do get quite a lot of sync glitches, although it seems to an on / off thing. Sometimes then sync glitches keep on counting up quickly, other times not at all. I'm not quite sure what that means, I can't see anything that is out of sync og stuttering on the tv.
     

    Users who are viewing this thread

    Top Bottom