Reduce flicker with GDI+ and C++

前端 未结 6 1569
再見小時候
再見小時候 2020-11-29 21:17

I\'m using GDI+ in a C++/MFC application and I just can\'t seem to avoid flickering whenever the window is resized.

I have already tried these steps:

  • r
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 21:59

    You may get some traction through using Direct3D to "tell" you when vsync's occur, et al, so you can BitBlt/update at a good time. See GDI vsync to avoid tearing (though getting things down to a single small BitBlt may be "good enough" for some cases).

    Also note that it appears that GDI BitBlt isn't synchronized with screen vsync. See Faster than BitBlt.

    Also note that using CAPTUREBLT (which allows you to capture transparent windows) causes the mouse to flicker (if aero is not in use) if used.

提交回复
热议问题