Unanswered Time lag when drawn on InkCanvas

  • Wednesday, May 09, 2012 7:32 AM
     
     

    Hi All

    I've implemented a sample wpf application with InkCanvas which has minimum editing capabilities like choosing color, thickness of the stroke. Implemented shapes like Line, Rectangle and Ellipse, but they are added as children to the InkCanvas. Everything works fine.

    But when I use the same logic in a bigger wpf application, I notice a small time lag between the cursor tip and the actual line drawn. What should I do minimize the time lag?

    Thanks in advance. 


    Murali Mahendra Banala

All Replies

  • Thursday, May 10, 2012 9:46 AM
    Moderator
     
     

    Hi Murali,

    I have ever create the drawn funtion using InkCanvas with different stroke or thickness, but I have never met the situation like this. And also consider you put it in a bigger wpf apps, although I don't know how big, but maybe your computer has no enough deal with this drawn when at the same time deal other in your apps.

    If you want to verify the root cause of this issue. You can upload your sample code to skydrive and post the link here, so that we can help you test it.

    Thank you.

    Have a nice day.


    Annabella Luo[MSFT]
    MSDN Community Support | Feedback to us

  • Friday, May 11, 2012 9:47 AM
     
     

    Hi Annabella

    Thanks for the reply. I've uploaded my sample application at SkyDrive as you have mentioned. You can access the file at "https://skydrive.live.com/redir.aspx?cid=01367527be1e01cb&resid=1367527BE1E01CB!110&parid=1367527BE1E01CB!109".

    The size of my bigger wpf application is around 26 MB (executable size in the debug folder).

    My Computer configuration:

    Processor: Intel(R) Core(TM) 2 Duo E7500 @ 2.93GHz 2.93GHz

    Installed memory(RAM): 2.00 GB

    System Type: 32 bit Operating System

    Virtual Memory:2009 MB

    Chipset: Intel(R) G41 Express Chipset

    Operating System: Windows 7 professional

    and I've installed DirectX 11 as I've read somewhere in blog that installation of DirectX 9 or above will help render the wpf screens faster.

    Thank you.


    Murali Mahendra Banala