asfarley / windows_ui_hang

This repo contains a minimal MFC project for reproducing stutter in Windows 10 due to dwm.exe
1 stars 1 forks source link

dwm #1

Open fwf02 opened 3 years ago

fwf02 commented 3 years ago

is it possible fix the stutter in dwm when its killed ? windows 10 1803

asfarley commented 3 years ago

From Microsoft support:

Discussed internally and applied ScrollWindowsExFlags appcompat fix and confirmed that it resolved the issue. Could you please do the following with your real application to confirm the fix. Kindly do revert back if you need any further assistance with this support request.

  1. Download and install Window ADK. During the installation, just select Application Compatibility Tools.

  2. Start 64 bit version of Compatibility Administrator (e.g. "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Application Compatibility Toolkit\Compatibility Administrator (64-bit)\Compatadmin.exe").

  3. Follow the documentation below to create a database file. https://docs.microsoft.com/en-us/windows/deployment/planning/creating-a-custom-compatibility-fix-in-compatibility-administrator At step 3, just click Next.

At step 4, select ScrollWindowsExFlags.

  1. Press Run tool button to run application to confirm that the issue is resolved.

  2. Press Save tool button to save the database to a file. This is what you need to include with your application and install.

  3. Follow the documentation below to install the database. https://docs.microsoft.com/en-us/windows/deployment/planning/using-the-sdbinstexe-command-line-tool Example: Start cmd.exe elevated. sdbinst c:\test\test1.sdb

  4. Run your application on the machine to confirm that the issue is resolved with the database.

How to uninstall the database:

sdbinst -u (e.g. sdbinst -u c:\test\test1.sdb) from an elevated cmd.exe, or Find it in Control Panel\Programs\Programs and Features or Settings app\Apps & features and uninsta

fwf02 commented 3 years ago

i dont have ScrollWindowsExFlags Application Compatibility Tools x32 and x64 so i try add on HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers for example csgo dwm disable i use NoDTToDITMouseBatch DisableDXMaximizedWindowedMode RunAsAdmin HighDpiAware when i try add ScrollWindowsExFlags the game not recognize it so i add it manually on __COMPAT_LAYER is that problem ? i really want to get rid of the stutters when dwm disable i will pay if its necessary i just love the mouse input when dwm is disable

asfarley commented 3 years ago

I'm not sure what the details of this problem actually are, I was just provided with the solution from Microsoft.