Nick,
"sysTicksPerSecond" has nothing to do with what you're seeing here. That
value is for the simulator libraries, not the emulator. Unless, of course,
you're using the Windows version of "sysTicksPerSecond" in your
application; then you'd be seeing problems.
"ticks" inside the emulator are a very nebulous creature. They do not
correlate very well with the actual passage of time outside the emulator.
Instead, the proceed at a rate that is more or less consistant with the
rate they would occur if the application were running on an actual device.
And they do that very poorly (kind of like the impersonated celebrity
voices on South Park). I can make them more accurate (actually, I can make
them exceedingly accurate), but only at the expense of an overall slow-down
in CPU emulation. So far, that trade-off hasn't been deemed desirable.
-- Keith Rollin
-- Palm OS Emulator engineer
Nick Anderson <[EMAIL PROTECTED]> on 03/28/99 01:47:57 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (Keith Rollin/HQ/3Com)
Subject: strange ctlRepeatEvent behavior on POSE
I was testing one of my programs on the latest POSE (2.1.d26) , with the
VII ROM (not the one from my VII, the one through the seed program) as well
as the 3.0 debug ROM, and I am getting kind of odd behavior
Namely, the repeat event is now >very< fast. Tapping on repeating button
with the following event handler:
switch(event->eType)
{
// snip
case ctlRepeatEvent:
{
switch (event->data.ctlRepeat.controlID)
{
case mainLeftInListRepeating:
// foo
break;
case mainRightInListRepeating:
//bar
break;
}
break;
}
}
very simple, works fine on the devices themselves, but "hauls ass" on POSE,
such that it seems to handle aproximately 10 events per tap on any ROM of
the current Emulator.
Note, I am doing this on a PII300 with 64Meg RAM, litte other programs
running.
Q: is this just a function of the speed of the emulation on my emulator
(ie, from SystemMgr.h)
#define sysTicksPerSecond 1000
// 1000/sec on Windows PC
vs
#define sysTicksPerSecond 100 //
100/sec on Pilot
or does it affect anything else? I have done a >lot< of development on
POSE, but hadn't noticed this before v2.1.d26
Thanks!
Nick
SoftCare
Nick Anderson
SoftCare Clinical Informatics
http://www.dietlog.com