To disable it from within a .NET application you need to DllImport dwmapi.dll. To do this you need to reference System.Runtime.InteropServices:
using System.Runtime.InteropServices;
Within one of your classes - usually where you have the application entry point - you need the following:
[DllImport("dwmapi.dll", PreserveSig = true)] public static extern int DwmEnableComposition(bool enable);
To invoke the method, simply do this:
DwmEnableComposition(false);
Great, it works for me. I'm back at 60 fps in windowed mode, whereas with Aero it was 55 fps.
ReplyDeleteThanks
Glad to hear it worked for someone else as well!
ReplyDelete