Hi all,
I'm trying to draw with Direct2D a C++ application that already uses Gdi and Gdi+. I'm a little confused about which type of target is better to use (DC or Hwnd), because I found different performance depending on whether or not I used the Gpu.
In particular, I found the following problems:
- If I use the DCRenderTarget I can not use hardware acceleration (or Default), because I have continued violations of protected areas of memory. This does not happen if I use HwndRenderTarget.
- If I use HwndRenderTarget, in general everything is fine, but I lose the focus on the window, which does not recognize the KeyPressed message, and, if I use the Gpu, performance fall a lot and strongly depend on the number of active targets (which does
not happen if I use the software acceleration).
Has anyone encountered the same problems?
Can you recommend something about it?
Thanks to all