问题
I'm trying to write a screensaver for a Windows platform using C++ and Win APIs. To render graphics I'm using GDI+, but the issue is rendering png's with some small amount of animation (fade-in and -out) becomes very "CPU heavy."
So I was wondering if there's a way to enable GPU acceleration for GDI+ APIs? And if it's not possible, is there something that I can use from a non-managed code that supports GPU acceleration (apart from OpenGL or DirectX)?
回答1:
Nope. GDI is mostly about manipulation of in memory bitmaps when it comes down to it. If you want more advanced features, use Direct3D/2D.
来源:https://stackoverflow.com/questions/12171475/does-gdi-support-graphics-acceleration