Answered WPF performance rendering tweak

  • Tuesday, April 10, 2012 7:23 AM
     
      Has Code

    Hi ,

    I would like to increase the present rendering speed of an application by manifolds.

    It basically has to do with changing colors of  textblocks which happen to be numerous.

    Due to the high performance requirements of such a process the application gives the impression

    of being in a hanged-state .Can we find a better rendering technique?

    Thanks,

    Regards,

    Murtaza.

                                        


All Replies

  • Tuesday, April 10, 2012 8:25 AM
     
     Answered Has Code

    Hi ,

    I would like to increase the present rendering speed of an application by manifolds.

    It basically has to do with changing colors of  textblocks which happen to be numerous.

    Due to the high performance requirements of such a process the application gives the impression

    of being in a hanged-state after the following operations.

    Can we find a better rendering technique?

    Thanks,

    Regards,

    Murtaza.

                                        

    Could you elaborate that what exactly you mean by better rendering technique ? I dont think your issue is becuase of rendering algorithms.

    Although one settings is there in WPF that gives you a slight control over where rendering is done (hardware or software) like CompositionTarget.RenderMode = HardwareOnly.

    You can also use the caching options(check the RenderOptions class) and try to make the colors used as frozen. You should take a look at how to optimize a WPF application performance in below links :

    http://msdn.microsoft.com/en-us/library/bb613578.aspx

    http://msdn.microsoft.com/en-us/library/bb613591.aspx

    Parent thread : http://msdn.microsoft.com/en-us/library/aa970683.aspx

    Hope that helps.

    Cheers !!

  • Tuesday, April 10, 2012 11:24 AM
     
     Proposed Answer

    Hello,

    Follow the links below. It may help you .

    http://msdn.microsoft.com/en-us/library/aa970683.aspx

    http://blogs.msdn.com/b/jgoldb/archive/2010/02/27/optimizing-visual-studio-2010-and-wpf-applications-for-remote-desktop.aspx

  • Tuesday, May 01, 2012 8:29 AM
    Moderator
     
     

    Hi murtazagandhi,
     
    I am marking your issue as "Answered", if you have new findings about your issue, please let me know.

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.