DCSIMG
Page faults using GDI+ - Dotmad (on .Net)

Dotmad (on .Net)

Just Another Web 5.0 Blog

Podcasts

Blogroll

Page faults using GDI+

I'm working on a C4I application using GIS maps.
The map is refreshed (redrawn) by calling the Control.Invalidate() method.
What got my attention was seeing few thousands of page faults on each refresh, resulting in CPU usage of 3-6%.

After some research, this is the response I got from Hans Passant in the MSDN forums:
"GDI+ bitmaps use memory mapped files. The bitmap data gets loaded into memory through page faults."

Now if I only could figure out why in older versions of the application there were no page faults, especially if he is right and this is the normal mode of operation.
פורסם: Aug 26 2007, 08:02 PM by Dotmad | with 1 comment(s)
תגים:

תוכן התגובה

Tamir Khason כתב/ה:

Getting rid of GdipFillRectangle, you'll get rid of more then 80% of GDI page faults. Try caching things (9 screens rule) or use WPF or other DX based technology to have hardware accelleration.

# August 26, 2007 8:26 PM