I create a Qt program with 64 widgets, I used direct2d to play video on every widget and used map<HWND, CComPtr> to save renderTarget. But when the number of renderTarget over 30, the qt program doesn't have any response while the video can play correctly.