Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am working with a code in Silverlight2.0 and C++ on WInce6.0 platform. This is meant to be a real time system. So in this i have screens where i have to blink a colon every 500millisecond( for time) and bar( implemented with a IXRRectangle) which has to show the variation of the signal. This bar is supposed to get reflected every 50 millisecond. In addition to this i have several other thread running in 25,500 one minute etc. The silverlight provides some function to force update the screen like InvalidateArrange(), UpdateLayout() in the UI elements interface. i tried updating the screen with these function so that i can invaidate only the portion of the screen. But this is not working. So currently what i am doing is running a timer every 500millisecond and calling InvalidateRect() to refresh the entire screen. This affects the performance a lot. When i looked in to the performance at the instance when the refreshing is happening the my 25 millisecond thread is taking around 70 millisecond. this affects my entire project performance.

Can any one please suggest a workaround for this.

Thanks
Ajai
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900