Windows 7 GDI Acceleration Mystery: Can we enable it programmatically? Yes, we (like) can! But how?

Note. At first, this may seem like a superuser question, but please read it completely - this is a programming question.


So they removed the GDI acceleration from Windows 7 , and now the classic theme animations look awful. And since it was a fundamental design change, there is no way to fix it, right?

Wrong!

I was really surprised today when I switched to the classic view (which disabled Aero) when the VLC player was working. As a rule, the maximization / minimization animation looks awful (they almost do not appear), but while the VLC was working, the animation was perfect, as on XP! As soon as I closed the VLC, they again became terrible. (They were better when playing in the media than when the player was idle.)

I would have played this earlier when I ran the 3D game and noticed that the animation had improved, but I assumed that it was a DirectX related issue. I tried to figure out which function calls caused an improvement, but no luck. Therefore, I was very surprised today when I noticed the same behavior with VLC, because it did not play video, but only audio (not even visualizations!) - and yet the sound playback improved my GDI graphics performance, making me think that maybe Windows 7 does have some kind of GDI acceleration. (?)

In this case, it matters, my graphics card is an NVIDIA GT 330M, and the PowerMizer is turned off. I controlled every variable that I can think of, in addition to whether the VLC was running, so I can largely exclude everything related to the features of the graphics card.


, :

- , API ?

, IDirectDraw::CreateSurface (, , 3D-), ; . , API-, , , VLC , . , , , , , .:)

+3
1

. VLC, , 1 , .

Clockres, VLC , , .

timeBeginPeriod , . , , , .

+5

Source: https://habr.com/ru/post/1796587/


All Articles