GWES Considerations
A version of this page is also available for
4/8/2010
Making Graphics, Windowing, and Events Subsystem (GWES) API calls in the thread that requires a real-time response can affect real-time performance negatively. GWES provides the functionality that is needed to display windows, draw objects, and enable notifications. However, this functionality has no guaranteed timeout. Because GWES utilizes a single critical section to protect access to its internal data structures, a thread can be blocked for an unbounded length of time waiting for another thread to complete an operation.
Using SetTimer as a real-time timer can also decrease performance. SetTimer is a timer that is based on Windows Mobile message queues and has no guarantee for signaling time.