kurtis2221 / win10_dwm_tool

Simplified tool to enable and disable DWM in Windows 10 20H2+
36 stars 4 forks source link

Any possibility to force DWM to run on CPU? #2

Open yamaci17 opened 1 year ago

yamaci17 commented 1 year ago

When a GPU driver is not installed, DWM.exe uses a fallback option to render on CPU instead of a GPU adapter. Is there a possibility to force this on a regular install?

kurtis2221 commented 1 year ago

Tried messing with dwm.exe in the memory to force CPU rendering or disable vsync, but the problem is most functions are behind system calls or are merged with other functions and very sensitive to any tampering. Both my attempts resulted in a crash or had to restart the system. Also tried to attach DXWnd with vsync kill, but the problem is it runs under a different user.

yamaci17 commented 1 year ago

thank you for your answer, I've hoped that there were some kind of registry or config hack that pushed the dwm natively into CPU render mode. I used windows 10 on an ancient hd 4550 for 2 months (yes it works, with legacy amd drivers). Then, the GPU did not have capable WDDM that could run hardware accerelation that DWM runs. naturally, I saw no VRAM usage or GPU activity from dwm.exe like I usually would.

So there definitely exists a fallback but I guess it is special code that only enables itself after those conditions

kurtis2221 commented 1 year ago

There is a registry option to use a Basic Display Driver, but it also disables your GPU...