[Approved] HELP test: fix for - some cards are slow at tuning. (1 Viewer)

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    To my big surprise I realized that the graph startup times on my nova hd dvb-s2 card (hauppauge) are approx 5 secs.
    And probably other cards as well.

    eg.
    2010-06-28 08:24:32.729432 [(227)]: dvb: RunGraph
    2010-06-28 08:24:37.631712 [(227)]: dvb: LockedInOnSignal ok

    those 5 secs. are spent in the following call:
    int hr = ((IMediaControl)_graphBuilder).Run();

    Currently it works like this:
    each time a card is idle the graph is stopped.
    each time a card is tuned to a channel the graph is started.

    I thought about why not try and change the cycle to:
    each time a card is idle the graph is PAUSED.
    each time a card is tuned to a channel the graph is RESUMED.

    Please note: it's the serverside (tswriter) graph that is being referenced, not the clientside graph.

    It seems it did the trick for me on this specific card.

    I've added an intial patch+binaries (for rc5+) which in essence does the following 2 things:

    1) graph is NOW always paused instead of stopped.
    Only when the tvservice is Disposed/stopped it will use a proper stopgraph call.

    Seems like pausing the graph makes retuning any channel on the card a wee bit faster.
    in my case 3-5 secs. faster - simply because those hauppauge drivers seem to spend a huge amount of time when starting the graph.

    In retrospect:
    Doing a complete stop-start graph cycle is costly.
    Doing a pause-resume graph cycle is cheaper.

    2) the "preload card" option has been extended to also start/run the graph, should make 1st tunes a bit faster as well.

    Please test and report back issues.

    would like to see results from people:
    - with twinham cards
    - users with long RunGraph-LockedInOnSignal delays (check tv.log)
    - users with CI/CAMs
    - users in general ;)

    Try before applying the patch :
    Tune channel.
    Stop channel.
    Tune channel.
    Stop channel.

    (measure time it takes to tune channel)

    Try after applying the patch :
    Tune channel.
    Stop channel.
    Tune channel.
    Stop channel.

    (measure time it takes to tune channel)

    remember to also test suspend-resume on tvservice.

    brief version history:
    1: initial version-
    2: fixed EPG grabber stopping graph instead of pausing it. thx romuz.
    3: compiled for svn.26258 - webstream and IP TV cards now use the stopgraph call instead of pausegraph.

    EDIT:
    0003039: some cards are slow at tuning. - MediaPortal Bugtracker
    committed to svn.


    /gibman
     

    Attachments

    • pausegraph1.patch
      11.3 KB
    • pausegraph1_bins.zip
      693.5 KB
    • pausegraph2_bins.zip
      693.5 KB
    • cardchanged2.patch
      15.6 KB
    • pausegraph3_bins.zip
      1 MB
    • pausegraph3.patch
      18.4 KB

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    Hi Gibman,

    I used to have a Nova S2 HD and i seem to remember that the long wait only happened on the latest driver. I dont remember what driver i was using but it definately was not the newest one.

    I had a nova S2 HD card and a technotrend s-3200 card, but was running out of pci slots so i sold those cards and bought a pci-e mystique dual S2 HD card from dvbshop.net. I having some problems relateted to the tuner B on that card but that is unrelated to this thread.

    Here are my logs from the mystique card.

    2010-06-26 13:35:59.230149 [(6)]: dvb: RunGraph
    2010-06-26 13:35:59.239150 [(6)]: dvb: LockedInOnSignal waiting 20ms
    2010-06-26 13:35:59.260151 [(6)]: dvb: LockedInOnSignal waiting 20ms
    2010-06-26 13:35:59.281152 [(6)]: dvb: LockedInOnSignal waiting 20ms
    2010-06-26 13:35:59.302153 [(6)]: dvb: LockedInOnSignal waiting 20ms
    2010-06-26 13:35:59.323154 [(6)]: dvb: LockedInOnSignal waiting 20ms
    2010-06-26 13:36:00.026195 [(6)]: dvb: LockedInOnSignal ok
    2010-06-26 13:36:00.029195 [(6)]: subch:0 OnGraphStarted

    Since the delay is only 0.5 sec it seems i would have no advantage in trying your patch, but if you want i will test it out?

    Regards
    Jacob
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    Any improvement is always good, even - 0.5 sec :)
    Join testing
     

    hioctane

    Portal Pro
    May 17, 2009
    247
    42
    Home Country
    Germany Germany
    AW: HELP test: fix for - some cards are slow at tuning.

    Im using WinXP SP3 32 bit, Nova-HD2 and Mediaportal RC5 with your patch2. Ive enabled EPG grabber on Idle and "Start TV in Fullscreen mode". I tune on a Channel, hit the Home button, Stop the TV Stream by pressing Stop Button, open the TV and i get a error message: "Cannot render Graph".
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    hioctane, we need logs.
     

    joystick

    MP Donator
  • Premium Supporter
  • January 26, 2006
    892
    39
    Home Country
    Germany Germany
    AW: HELP test: fix for - some cards are slow at tuning.

    HI,
    first of all thanks for your effords!
    I think I am a normal user,like you stated in your first post, you can see my specs in my signature (using CI/CAM)
    Your patch really makes a difference in my environment. Channel changing time have dramatically increased since 1.02 for me.
    With your patch alls seems to be back to "normal".
    I have not seen any problems.
    The only thing I noticed that changing from sd to hd still takes 5 seconds.

    If you need further info (logs etc) please tell me.

    cheers

    joystick
     

    Users who are viewing this thread

    Top Bottom