No vsync without Aero composition; cannot turn on Aero on CreateDesktop() made desktop

Started by
3 comments, last by Prune 11 years, 1 month ago

My stuff is sandboxed so I use CreateDesktop() to prevent shatter attacks. However, the new desktop has no Aero composition when created for whatever reason (though the default one does) and trying to enable it with DwmEnableComposition() fails. I have no idea why, or how to solve this problem. DwmEnableComposition() works fine on the default desktop. Is there any way to get vs vsync to work without composition? I can't get it to do so, even when forced from nvidia's driver control panel. What's the solution here?

I'm using Windows 7. In Windows 8, they say one cannot disable composition, so I'm wondering if this problem will not be present anymore there.

Edit: I forgot to mention I'm using OpenGL.

"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)
Advertisement

Any help?

"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)

I think I know ....

On the 26th Microsoft put out an update that made the Windows 7 desktop work like the Windows 8 desktop.

Basically, DWM always runs. It cannot be turned off now. Also, the whole display is rendered with DirectX.

I have been looking into this stuff because I use Fraps to record my desktop.. but that no longer works :(

See if anything here helps

http://msdn.microsoft.com/en-us/library/windows/desktop/aa969538(v=vs.85).aspx

good luck

Michael RhodesTiger Studios Web Designhttp://tigerstudios.net

Thanks for that info. Do you know which update it was? The only update I see available that's not earlier than that date is the optional KB2670838 but I can't tell if it's that one. I haven't installed it yet as, when I tried recently along with some other updates (keyboard and mouse) it failed, Windows would boot with a black screen, and I had to do system restore. But I don't know if it was this update or the driver ones.

[Edit:] I installed the KB2670838 update (the date was 2/27/2013) and there's still no composition in the CreateDesktop() desktop. Not sure if that's the right one, but I don't see any other...

"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)

Hmm I can still disable composition on the default desktop after I've installed all updates. Still haven't found the update you mention...

This seems to be about the same KB I already mentioned, also from the 27th: http://msdn.microsoft.com/library/windows/apps/jj863687.aspx

Nothing about composition in there, however.

"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)

This topic is closed to new replies.

Advertisement