This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Touchscreen CPU load on a716


Touchscreen CPU load on a716

Postby Dan East » Apr 12, 2004 @ 10:14pm

After some initial testing I'm seeing a big hit on the a716 when the touchscreen is in use. Around a 50% drop in FPS. Can anyone else verify this? Has anyone found a solution to this performance issue that basically all Pocket PCs exhibit? Supposedly Tomb Raider does not slow down when the stylus is in use. This could be the result of it already running at a low FPS, an inaccurate (or purposefully fudged) FPS counter, or they actually identified and found a way to correct the problem.

Here are existing threads on the issue:
http://www.pocketmatrix.com/forums/view ... hp?t=10065
http://www.pocketmatrix.com/forums/view ... hp?t=13790
http://www.pocketmatrix.com/forums/view ... hp?t=13497

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby rcp » Apr 13, 2004 @ 4:28am

User avatar
rcp
pm Member
 
Posts: 184
Joined: Jul 18, 2003 @ 2:12am
Location: Duluth, GA. (Southeast US)


Postby Dan East » Apr 13, 2004 @ 6:01am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby rcp » Apr 13, 2004 @ 6:26am

User avatar
rcp
pm Member
 
Posts: 184
Joined: Jul 18, 2003 @ 2:12am
Location: Duluth, GA. (Southeast US)


Postby j.edwards » Apr 13, 2004 @ 8:20am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Johan » Apr 13, 2004 @ 9:35am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby joshbu [MSFT] » Apr 13, 2004 @ 6:16pm

I took a look in the message queing code. Each message que in CE has a an event associated with it that gets signaled when a new message has been entered into the que. GetMessage's primary difference from PeekMessage is that it calls WaitForSingleObject on that event.

All of the low power magic is happening in the WaitForSingleObject routine.

So, you should be able to reap low power goodness with either loop, so long as when you use PeekMessage, you still give some cycles back to the OS in some way: a Wait* or a Sleep.

Now, I'm afraid that I can't answer why the touch driver performance would improve in that case. Perhaps it is multithreaded and giving up a few cycles allows the touch worker threads to do work in a more timely fasion? <shrugs>
joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Postby Dan East » Apr 13, 2004 @ 6:40pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby joshbu [MSFT] » Apr 13, 2004 @ 7:04pm

joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Postby Dan East » Apr 13, 2004 @ 8:36pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby rcp » Apr 14, 2004 @ 4:10am

User avatar
rcp
pm Member
 
Posts: 184
Joined: Jul 18, 2003 @ 2:12am
Location: Duluth, GA. (Southeast US)


Postby Tala » Apr 14, 2004 @ 12:18pm

Tala
pm Member
 
Posts: 125
Joined: Feb 6, 2004 @ 4:32pm


Postby j.edwards » Apr 16, 2004 @ 5:46am

rcp: have you done any tests to see if the WM_TIMER msgs queue up?

joshbu: you mentioned events being "merged" - does this apply to WM_TIMER messages also?
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby joshbu [MSFT] » Apr 16, 2004 @ 7:42am

joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Postby Digby » Apr 16, 2004 @ 7:47pm

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum