Skip to main content
gamedev.net
🔒 Locked

MS Smartphone

Started by zolee Jun 9, 2006 at 5:54 AM 5 replies 1.1k views
Original Post
zolee
zolee
Hello, does anybody have experience with graphics stuff on MS Smartphone? My question is, are there different framebuffer xpitch, ypitch values on different devices, or can I assue that xpitch is 2 and ypitch is xpitch times the width? Also, can I assume that there is some sort of raw framebuffer access on (almost) all devices? Either GAPI or GDI ExtEscape.
br,Zolee------
zolee
zolee
Uhm, noone smartphoning around?
br,Zolee------
Ravuya
Ravuya
Doesn't it just use the PocketPC API?
zolee
zolee
I assume yes. If there's GAPI or direct framebuffer access, it's all right. But if I had to blit every single pixel using GDI, it rather would be a slideshow...


br,Zolee------
don
don
GAPI can give you raw access to the primary display surface. So can DirectDraw on Windows Mobile 5.0 devices. GAPI is a deprecated API and apps should be written to use DDraw going forward.

You can get decent performance from GDI if you create an offscreen DC and DIB section, then do a 1:1 blit from the offscreen DC to the display. Reading/writing to the DIB section will be as fast or faster than reading/writing to the display using GAPI/DDraw. It probably won't be as fast as using DDraw or GAPI to get your bits on the screen, but it has the advantage that it you'll only need one code path to work on all previous and future Windows Mobile devices.

frob
frob
Also on the GDI blit vs. GAPI, on most VGA WM2003 devices, GDI is faster than GAPI.

So not only is it good for moving forward to WM5, it works well with QVGA and VGA devices. There are a few drawbacks to just using GDI for fullscreen applications, mainly that there are so many ways to get minimized or hidden by other windows. If you can live with that, GDI is great.
zolee
zolee
thanks for the tip, frob
the GDI vs GAPI speed you mentioned, has anything to do with GAPI's pixel doubling on VGA devices?
br,Zolee------

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.