PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

>> GAPIDRAW Stylus performance !!

Hi,

In case you get bad stylus performance on your PDA you might want to look into this:

On WCE apparantly the user input is managed internally by the same thread that manages windows events. This means that if you have a high performance thread somewhere (which is useful on stationary computers when running in windowed mode) user input will work bad on Windows CE.

Solution:

Open "GapiApplication.h" (or GapiApplication.cpp if you have split the files)

Find the row that says:

-----
::SetThreadPriority(m_hThread, THREAD_PRIORITY_ABOVE_NORMAL);
-----

and replace it with:

-----
#ifndef _WIN32_WCE
::SetThreadPriority(m_hThread, THREAD_PRIORITY_ABOVE_NORMAL);
#endif
-----

The performance improvement should be significant. This fix will be included with GapiDraw 1.1.

/Johan

PS. Thierry.. No comment please.. ;)
=)
Would this also help with button input?
It should...

The problem is that mouse and button input information are handed to the application using the Windows messaging system. If that thread is starving, the device becomes unresponsive.

Johan will fix this for v1.1.
Yes, this works quite well :D