Crirus,
Windows uses Virtual Memory management system, that effectively allows the
process in run state to use all the available RAM. The other processes are
put in wait status, while your process is running, and if your process is
requiring more memory then the system has, it stores the status information
of the waiting process on the HDD and allows your process to use their space
in RAM. This swap is called a page fault.
Now, OS gives each process a preset time interval of running (to achieve
multitasking, usually several CPU clock ticks), so after that time quant for
your process is up, the OS put you process in wait status and activates the
waiting processes. The it has to do page faults to reload their status info
into RAM.
The large number of page faults tells me the following:
1. You are rendering HUGE picture.
2. You wrote the app inefficiently so the memory management is struggling to
keep up with memory expansion on each refresh.
3. Combination of the 1 and 2
I hope this explains and good luck
Milan Todorovic
PS. For further understanding of OS memory management see any OS theory book
(e.g. Tannenbaum's Modern Operating System)