Hacker News new | ask | show | jobs
by samsaga2 1199 days ago
Smooth animations and performance. Draw a big image with Win32 BitBlt it's painful slow, for example. Imagine that you are zooming an image in Photoshop and it is laggy, the user experience would be horrible. Also, the lag is an important issue in the user interface, even something so small like 100ms would be bad.
4 comments

If you're using BitBlt instead of Direct2D in anything post Vista, you're holding it wrong.
Why not just use DirectX/*GL for those regions that need it and stick with platform UI for the rest? Blitting API still works just fine if you're drawing combo boxes, no?
You can use ID2D1HwndRenderTarget::DrawBitmap or ID2D1RenderTarget::DrawBitmap instead.
What about the winrt api?
Nee, Direct2D. Save yourself some pain.

WinRT has gone through multiple reboots, who knows what will happen still.

Better use the existing Win32/COM stuff.