PocketMatrix forums

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

About the stylus drivers slowndown when Tapping screen....

after many hours of search, i'm definitively sure there is Relation between Stylus Driver and the Double Click feature of WindowsCE.

If you tap the screen quickly many time a second , you'll notice a lose of 3percent max of CPU bandwitdh!

If you stay 5 second pressed, you'll lose about 20-30 percent of CPU bandwitdh.

So after looking the game TOMBRAIDER i can say they don't use any homemade Stylus Driver and they have resolved this problem.

So there is surely something to Disable the Double Click somewhere in WinCE... (i mean some to disable in Stylus Driver or in Windows Message Queue)

If somebody has an answer, please post it here , many people who use Stylus Tap are waiting for that for a longtime.

thanks a lot.

Schtruck.
This stylus behavior has been discussed before on the forums. To my knowledge it was never resolved in that thread either.
Maybe we can find one of the coders for Tomb Raider?

This is a pretty interesting development, although it seems you're still losing bandwidth.

Do you regain some CPU usage after a while? 5 seconds seems too long for the right click menu, and one would think it would deactivate after a short amount of time.
First of all, the amount of processing required by the driver should be directly related to how long the stylus is touching the screen. When you tap the screen the stylus is only touching the screen for a very short period of time. Even if you tapped as fast as you could the culmulative time the stylus is against the screen would be very small compared to holding it down.

Also, the shell sets some sort of timer to check for tap-hold events. I don't know if that could have anything to do with the problem or not.

Dan East
I see a loss of about 9% in either case, taps or long hold (or drags). (41fps to 38fps)

I am running a Dell Axim 400. ppc2002

I am using WM_MOUSEMOVE in the wndproc and

Code:

if (PeekMessage(&msg, NULL, 0, 0,PM_REMOVE))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}


as my loop

It might be possible that the performance hit is related to how fast your game is running. The msg q could possibly fill up and slow down because your program doesn't allow enough time to empty the q, OR it could start filling up and then combine messages thus actually reduce the number of messages that get sent to wndproc. I really have no idea. For our current game is doesn't matter because when the player is touching the screen, speed is not an issue.

Of course, 9% would be a big damn deal if our game was a racing title. So lets keep beating this dead horse. ;)

cheers,

rcp
9% ! You guys are lucky to have such a "small" problem.

Toshiba e740's and e750's have about a 40% drop on pretty much everything I've tested.


EDIT: Is there no demo for Tomb Raider? I'd like to see what ya'll are talking about, but I'm not paying $30 to find out. The demo on handango runs in IE!