Browse by Tags
All Tags »
Tips and Tricks »
Performance (
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/a-little-bit-about-batteries/ ] I tired to write about programming, code and similar nerd stuff. So today I’ll write about … batteries. How is it? :) Today, batteries are in use all over our life. We have a battery in our mobile phone, computer, camera, mp3 player, even microwave, alarm and hand clock. So, the main problem with batteries, scientists all over the world work about is how...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/hlsl-pixel-shader-effects-tutorial/ ] Recently, I already wrote about PixelShader effects , introduced in .NET framework 3.5 SP1 (WPF). However it looks like for most people this syntax is still hard to understand. Today we’ll try to lean it more. In order to do this, I wrote small program, that helps you to write and debug pixel shader effects quickly. This how it looks like Hit Open...
[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-high-performance-graphics-in-wpf/ ] Microsoft DPE : "WPF is ever best super performance oriented technology for creating hyper multi point graphs, using parallelism and huge in-memory persistence vector scrounged math distributed calculations... And ever more with branded new Microsoft Windows Vista 7. Client : Errr, well.... Let's try to apply it for our VB program.....
[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/visual-studio-2008-new-test-features/ ] Referring my disappointment from the topics on 70-552 , I start looking on new test features, provider by Visual Studio 2008. I worked with performance analyzer in VS2005 (which is looked much more like debug tools for .NET CLR developers in MS) and today, after public release of VS2008 , I can show you my research. From the first sight, it looks...
[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...