locked
From Gdi (Gdi+) to Direct2D RRS feed

  • Question

  • 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

    • Moved by Jie Bao Monday, December 10, 2012 6:06 AM (From:General Windows Desktop Development Issues)
    Monday, November 5, 2012 10:38 AM

All replies

  • Hello,

    I think your issue should be raised in the DirectX Forum. I believe they will know more information of this issue than us, and I will move this one to off-topic, Please open a new thread in that forum.

    Thanks for your understanding,


    Bob Bao

    Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
    你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个 百变锁屏 应用,让你的锁屏不断地变化起来。

    Monday, December 10, 2012 6:06 AM