Just in case anyone else needs to know this information.... The slowdown happens when calling WinRGBToIndex() and/or WinSetForeColor() while the current draw window is an offscreen window.
To work around this, I now temporarily set the draw window to an on-screen window, set the color, and then set the draw window back. Interestingly, this also turns out to be necessary when I run my code on the emulator, using Palm IIIc OS 3.5.0 color debug ROMs... otherwise I'll get an "Index out of range" fatal error. (That's how I stumbled across the fix!) Thanks to all who replied. I hope this is useful for others. WAL 9000 wrote: > > Hi, > > I'm writing a game for color Palms, running in 8-bit color mode, using > the standard Palm color palette. It runs briskly on a Visor Prism and > Palm m505 (about 15+ frames per second), but when I run it on a Sony > CLIE N710C, it only runs at about 5 fps! > > I haven't seen this kind of slowdown on any games I've downloaded. I'm > not using any of Sony's HR* calls, nor any low-level access: mostly > WinCopyRectangle()s and WinDrawRectangle()s. > > Does anyone have any idea what I might be doing that slows the Clie down > so much? Any directions I should look in? > > Thanks in advance for any help, tips or ideas! > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
