It's been about about a year or so since I programmed for Pocket PC, and I have the feeling some things may have changed - I'm reading stuff about problems with the MediaQ chip etc?
Anyway, when I programmed the last game, I managed to get fairly consistant blits, if I recall correctly. What I did was I arranged the offscreen buffer to be the same orientation as the screen itself, so I was always copying memory which was in the same cache lines. I had a special hack for the 3800's screen address too.
e.g. on the iPAQ I copied vertical lines at 4 bytes at a time, on the Jornada I copied horizontal lines at 4 bytes at a time. I think it did it in about 4ms on both, leaving about 12ms to render the actual game (to run at 60fps)
(thing is, if Video memory isn't cached, I'm not sure why that mattered... - does it?)
Do you have any advice for offscreen buffers which will work well on newer devices?
What are typical blit/screen flip times these days, and what are the pitfalls?
Anyway, when I programmed the last game, I managed to get fairly consistant blits, if I recall correctly. What I did was I arranged the offscreen buffer to be the same orientation as the screen itself, so I was always copying memory which was in the same cache lines. I had a special hack for the 3800's screen address too.
e.g. on the iPAQ I copied vertical lines at 4 bytes at a time, on the Jornada I copied horizontal lines at 4 bytes at a time. I think it did it in about 4ms on both, leaving about 12ms to render the actual game (to run at 60fps)
(thing is, if Video memory isn't cached, I'm not sure why that mattered... - does it?)
Do you have any advice for offscreen buffers which will work well on newer devices?
What are typical blit/screen flip times these days, and what are the pitfalls?