My Direct2D program is jittering on moving or resizing window

thebluetropics 50 Reputation points
2023-02-06T08:44:05.4033333+00:00

I've been used Direct2D for graphics a lot, last year. And I am trying to create another Direct2d app. My current direct2d program displays only white background, as expected. However, when I move or resize the window, it's movement is jittering. I don't know why, but my old direct2d program does smooth movement and resizing. Please help me.

And, Here is my current direct2d program...

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,734 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 86,976 Reputation points
    2023-02-06T09:25:39.7633333+00:00

    Don't call InvalidateRect on WndOnResize

    And when you debug, use the flag D3D11_CREATE_DEVICE_DEBUG for D3D11CreateDevice, it will show wrong releases for interfaces...

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.