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).