I have noticed that the demo application uses CeSetThreadPriority and sets the priority level of the rendering thread to zero. I would not reccomend doing that, or in fact I don't reccomend using CeSetThreadPriority at all. Use SetThreadPriority instead. Windows CE 3.0 has 255 priority levels that can be set with CeSetThreadPriority where 0 represents the highest priority. SetThreadPriority sets priority levels 248 to 255. Levels below are called real time levels and is used by the OS and drivers. You should not use those levels if you don't have a very good reason and know exactly what you are doing.
In Windows CE scheduling is done on thread basis and a thread will only run as long as there is no other thread with higher priority level that is scheduled to run. This makes it very easy to starve other threads. I have been working with driver/system development in Windows CE (not Pocket PC) for some OEMs and getting the priority levels right on different threads in the system is pretty tricky.
So what I wan't to say is: don't hijack the scheduling but let the OS do the scheduling unless you know exactly how it will affect the rest of the system.
In Windows CE scheduling is done on thread basis and a thread will only run as long as there is no other thread with higher priority level that is scheduled to run. This makes it very easy to starve other threads. I have been working with driver/system development in Windows CE (not Pocket PC) for some OEMs and getting the priority levels right on different threads in the system is pretty tricky.
So what I wan't to say is: don't hijack the scheduling but let the OS do the scheduling unless you know exactly how it will affect the rest of the system.