Page 1 of 1

GapiDraw 1.1 beta1 16-bit desktop requirement

PostPosted: Dec 3, 2002 @ 6:34pm
by Johan

PostPosted: Dec 3, 2002 @ 9:05pm
by Digby

PostPosted: Dec 4, 2002 @ 12:22am
by Hosed

PostPosted: Dec 4, 2002 @ 12:35am
by Kzinti
Using anything less then 32 bpp for my desktop is a definite no-no. If an application doesn't run because of that, it gets the shift-delete treatment: it doesn't even hit the recycle bin.

PostPosted: Dec 4, 2002 @ 12:38am
by Blacky
I'm thinking about what hosed said. Isn't this possible to do all the things accelerated and then do this additional last blit 16->32bpp ?

But another idea would be to enable direct 24/32bpp for everything/surfaces when running on desktop-PCs. I mean, future PocketPCs will for sure have TrueColor, too. Or is GapiDraw too hardcoded to 16bpp and this would be too much rework ?

Greets,
Michael Ritter
5am|coderz

PostPosted: Dec 4, 2002 @ 2:08am
by bir

PostPosted: Dec 4, 2002 @ 2:32pm
by Johan

PostPosted: Dec 4, 2002 @ 3:01pm
by Hosed

PostPosted: Dec 4, 2002 @ 6:09pm
by Blacky

PostPosted: Dec 4, 2002 @ 7:45pm
by Digby
sbl,

You can most certainly create offscreen DirectDraw surfaces that reside in video memory that are not the same pixel color depth as the primary.

DirectDraw will not perform color-conversion during blits between dissimimlar surfaces though. Maybe that's what your limitation is?

Blacky,

I think you're slightly confused. BltBatch is used to submit a list of blit operations to the hardware through a single API call. The API was designed to support alpha blits in the same manner as Blt was (see DDBLTFX members). The reason none of this is supported is because hardware vendors didn't feel it was worth putting 2D alpha blending capability in their GPUs. They threw all of their time and effort into hardware acceleration of 3D operations instead.

Today, the overwhelming majority of game developers that want to do 2D effects in their game do this with the 3D chip and draw viewport-aligned texture-mapped quads instead of blitting bitmaps. You get things like alpha blending, rotation, scaling, and batching all for free. Plus, if your game uses 3D and you try to use DDraw to blit some type of HUD or UI on the screen you will cause your performance to drop because it will have to flush the 3D pipeline (stalling) before the blits can execute. It's far more efficient to do everything as 3D which won't result in a stall of the GPU.

PostPosted: Dec 5, 2002 @ 11:07am
by Johan

PostPosted: Dec 5, 2002 @ 6:44pm
by Digby