[Approved] Fix string functions (skin) getting re-evaluated every render pass (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Fix string functions (skin) getting re-evaluated every render pass

    nice patch - but any chance to get the + thing chemilli mentioned fixed? Would be nice to see this in MP 1.1.0
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Very nice, working great so far.

    I have a very fast system and this clears up the scrolling lag nicely.
     

    Zinu

    Portal Pro
    February 28, 2008
    650
    23
    Home Country
    Netherlands Netherlands
    As said before, great patch. Really speeds up scrolling alot! Now it's *almost* just as smooth as MyTVseries :D
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi,
    I'll test in RC2, and CPU usage goes to down :) Great :)
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    • Thread starter
    • Moderator
    • #16
    As said before, great patch. Really speeds up scrolling alot! Now it's *almost* just as smooth as MyTVseries :D

    we are not on the moving pictures forum :p this is the general mediaportal patch section :)
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    You should probably use Dictionary.TryGetValue instead of Dictionary.Contains, whenever you use ".contains" to later actually retrieving the value.

    more info here.
    C# Dictionary Lookup Comparison

    Otherwise it looks ok to me.

    /gibman
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    • Thread starter
    • Moderator
    • #19
    thnx for the tip and benchmarks gibman. I was under the false impression gettryvalue involved some hidden exception catching but that's not the case with dictionary. I will update this patch (and my other one) by the end of next week. We can use every speed increase we can gain as this is mostly called in the render logic.

    nice patch - but any chance to get the + thing chemilli mentioned fixed? Would be nice to see this in MP 1.1.0

    I already looked into that issue and i think i can come up with a solution this weekend (as i'm on holiday right now)
     

    Users who are viewing this thread

    Top Bottom