DCSIMG
Performance,tutorial,source - Just code - Tamir Khason

Browse by Tags

All Tags » Performance » tutorial » source (RSS)
Please update your bookmarks, because the new url of this blog is http://khason.net/ (you have not update RSS feeds, it will be done automatically). Why I did it? Why I decided to go to “stand-alone”… Well. there are some reasons. Generally, I do not want to explain all those here, but trust me, there are some. The main reason is, that there is no responsible person in charge for this blog platform in Microsoft Israel. This why, if your blog is popular and you have a respect to your blog visitors...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/brightness-and-contrast-manipulation-in-wpf-35-sp1/ ] While being in flight, I had to learn new features, introduced in .NET 3.5 SP1. So, let’s start from image manipulation. I want to perform contrast and brightness manipulation in GPU over displayed image. In order to begin, you should download and install .NET 3.5 SP1 and Visual Studio 2008 SP1 . Meanwhile (it’s about 500 MB of download...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-addrangeremoverange-in-silverlight-observablecollectiont/ ] Someone in Silverlight forum asked for interesting question: “Is there any way that I can add/remove items in bulk from an ObservableCollection object?”. The “formal” answer is: “No, AddRange RemoveRange operators are supported for List<T> only collections, thus each time you want to add or remove items from ObservableCollection...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/performance-appliance-of-rendertargetbitmap/ ] Challenge : draw complicated Path and animate anything over it Problem : high CPU while animating object So, we got another challenge – draw Path object with thousand of points and animate another object over the Path by having least possible impact on CPU. What’s the problem? First of all, let’s create out XAML <Path Name="path"...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/ ] Did you ever see, that MediaElement “eats” about 30% of CPU while playing movie in WPF? Did you thought, that you  can display live camera capture in WPF with 60 fps full screen (I have really high resolution 1920x1200) and 2% of  CPU? You did not? Let...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/ ] Parallel computing is very cool technology, that makes you able to leverage tasks between processors in your system. Today it’s already impossible to buy single processor computer – when you’ll buy new PC, you’ll probably get dual core CPU at least. Today we’ll...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-disconnect-ui-and-data-in-wpf-cachedobservablecollection-and-some-updates-regarding-threadsafeobservablecollection/ ] Sometimes, we want to "freeze" current displayed collection, while the original collection keep being updates. How to do it? There are some ways to get such functionality. One is to use CollectionView DeferRefresh method and release (dispose) it after...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/software-is-sucks-probably-it-really-is/ ] Remember new features, that make your code unreadable ? A couple of days ago, CLR team released first preview of Parallel Computing for .NET . Isn't it really cool, that now you can use full power of your computer? I decided to test the extension and wrote simple routine, that throttles your CPU. static int i=0; static void MessMe()        ...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/dev411-presentation-and-demos-download/ ] I uploaded my presentation, done in DevAcademy2 to SkyDrive. Now you can download, use and review it. PPT only presentation (7.2 MB) PPT only presentation before final cleanup (7.6 MB) Full presentation, including demos, code and PPTX file (26.1 MB) Have a nice day.
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/thread-safe-observable-collection/ ] If you ever wrote something more, then standard UI input-output, you sure got into wide range of exceptions like "The calling thread cannot access this object because a different thread owns it" or "This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread". What...