Page 1 of 2

Anyone using DirectX

PostPosted: May 14, 2007 @ 11:21pm
by Cardinal
So I have noticed there isn't very much talk about DirectX on WM5 based devices. I've been using it and aside from a few minor hacks you have to do in order to get it working on all devices, I really like it!

Some SmartPhones seem to have video acceleration (namely the Samsung Blackjack) so that makes things interesting as well. Although, I noticed that the Blackjack's CPU is a TI-OMAP processor which features video acceleration on-chip.

Do SmartPhone's/PocketPC's have a seperate video chip or is it done on board the CPU or... what?

PostPosted: May 15, 2007 @ 4:11am
by j.edwards
I'm not using it, but have considered it. The main reason I haven't seriously considered it yet is because I want to support PPC2003 devices. Once everything is finished and happily working with older devices I will look at building in support for DirectX for newer devices.

What are the hacks you hinted at? Do you primarily just use it for faster blitting to screen?

PostPosted: May 15, 2007 @ 4:17am
by Cardinal
Well it's just a little tricky setting up the primary/back buffer.

You create the direct draw object, get the caps and from there you can see if a backbuffer with flipping is supported. Well some phones (like the MotoQ) will say that indeed it is supported until you try to actually create the surfaces and then it fails. So the way around that is to create a primary surface and a seperate back buffer and then do a blt copy over each frame of the back buffer to the primary surface as opposed to using the hardware flipping capability.

PostPosted: May 15, 2007 @ 4:20am
by j.edwards
Ok, so do you render all your graphics with your own code? How extensive use do you make of the DirectX drawing capabilities? I had a look a while back and from memory it didn't seem to support much more than drawing a surface onto another, or did I miss something?

PostPosted: May 15, 2007 @ 5:57am
by Cardinal
Ya aside from blitting, you have to do it all yourself BUT the blitting will take advantage of hardware capabilities when present which makes a big difference.

PostPosted: May 17, 2007 @ 2:36am
by mm40
How much of a performance increase do you get with one blit? I doubt its anything over what GAPI can do.

For example on the treo my GAPI blit is around 3ms.

I doubt anyone will be using it until WM5 devices are more widespread, which will be a few more years, a lot of people are still using 2003 devices and older.

PostPosted: May 17, 2007 @ 5:09am
by j.edwards
mm40, do you have any actual stats on 2003 usage? I would have thought that there were now more WM5 devices in use than 2003, although I actually still use a 2003 device :)

PostPosted: May 17, 2007 @ 12:21pm
by PointOfLight
I don't personally know anything about legitimate statistics on OS usage, but if I were to guess I'd say that more Smartphone users were probably using WM5, but more non-phone PDA users were still running WM2003- devices. I have two WM PDAs, one running WM2003 and the other WM2002.

PostPosted: May 17, 2007 @ 3:55pm
by Cardinal

PostPosted: May 17, 2007 @ 9:39pm
by mm40

PostPosted: May 17, 2007 @ 9:41pm
by mm40

PostPosted: May 17, 2007 @ 10:19pm
by Dan East

PostPosted: May 17, 2007 @ 10:30pm
by Cardinal

PostPosted: May 17, 2007 @ 11:09pm
by mm40

PostPosted: May 17, 2007 @ 11:39pm
by Cardinal