This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Fastest interop with GDI?


Fastest interop with GDI?

Postby Narin » Jan 7, 2009 @ 10:18pm

What's the best way to combine GapiDraw and GDI? I have to use GDI to do some things like drawing text.

Right now I'm creating surfaces with the default settings and using GetDC to "ship" my surface to GDI and draw on it, then ReleaseDC when finished. This is pretty slow when drawing onto large surfaces (say 480x480 pixels). All my "final" compositing is done using GapiDraw and GapiDraw owns the final back buffer.

What's really happening when calling GetDC? Do GapiDraw surfaces live in a totally different spot than GDI surfaces? And copying back and forth is always slow?

I've tried telling my surfaces to live in system memory vs. video memory but it doesn't make any difference (and I don't fully understand the difference).
Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


Postby Johan » Jan 9, 2009 @ 8:38am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Narin » Jan 11, 2009 @ 12:23am

Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


Postby Narin » Jan 11, 2009 @ 4:11am

Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


Postby Johan » Jan 11, 2009 @ 7:18pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron