lauralex / dwm_lut

Apply 3D LUTs to the Windows desktop for system-wide color correction/calibration
GNU General Public License v3.0
238 stars 18 forks source link

Dwm lut and stuttering #47

Open KingCrazyC opened 6 months ago

KingCrazyC commented 6 months ago

This DWM lut does not just reduce performance! I have done several tests and it gives 99% usage spikes on my 4090 and my 3080 TI.. and it causes weird stuttering every few seconds in ALL games with or without G sync.. and if i turn of the DWM lut i get a smooth experience without the spikes i get every few seconds.. wish it was better :( i would even pay some if it could work good with games without these issues.. have a friend who has Calman software and he has no performance hits with games..

JTGaming commented 6 months ago

Could you provide some ways to replicate this? I'm interested in seeing if i encounter this issue. Maybe you have some frame graph data from with it on vs off? Have you tried running 3dmark to see if there's any noticable difference in performance?

KingCrazyC commented 6 months ago

Me and 3 other friends of mine has the same problem.. we lose up to 20 fps in most games but some open world games is even worse.. but the fps loss is really not so important since i have a high end PC, But the weird stuttering makes the mouse feel like its in sand when you move around.. and it happens every 4-5 seconds... reinstalled windows because i thought it was something wrong there until i figured out that it was the DWM lut doing this... ledoge the maker of this has stated that you can lose some performance using this but he did not say anything about this stutter problem :(

KingCrazyC commented 6 months ago

I have done further testing, people was saying that the DWM LUT turns off G-sync.. but that is not the case... I turned off G-Sync and i had the DWM LUT disabled to do some testing on games with both off and guess what? no stuttering or screen tear even without having G-Sync enabled... but when i enable the DWM the stuttering begins... so it has nothing to do with the DWM turning off G-Sync.. i understand that you could lose performance but this is NOT because of the performance loss you get.. the DWM as long as it is enabled you will get screen tear and stutters... please try to fix it @lauralex? or at least try and see what is causing this..

JTGaming commented 6 months ago

so you're saying you get screen tearing and stuttering? and also "99% usage spikes"? I'm guessing the last one is GPU 3D utilization in task manager? Would be nice to see some data, like a frametime graph. Also, nvidia drivers have some bugs at the moment, so make sure you have vsync off in the control panel, and Afterburner/HWInfo/GPUz/etc are closed or else you might get massive stuttering and frametime variability from those instead.

KingCrazyC commented 6 months ago

Here you have the graph with the DWM disabled Graph without dwmlut

KingCrazyC commented 6 months ago

And this one is with it enabled Graph with dwmlut

KingCrazyC commented 6 months ago

And this was tested on Cyberpunk and the same happens to all games i try.. it even happens when the fps is rock solid..

casef commented 6 months ago

The graphs are not very useful, because we don't know what the framerate and frametime values actually were, we don't know what your GPU and CPU usage was, we essentially only know that your framerate dropped by unknown amount and your frametimes went up by unknown amount. The only thing we know is that you tested it on one of the most demanding games out there, but we don't even know how you had it set up.

Plus it could easily be something specific to your system. And also let's not forget the fact the app is kind of an unofficial hack in the first place and is bound to cause performance drop and various issues.

KingCrazyC commented 6 months ago

I have a locked framerate... it never drops below 60.. as i said my fps is rock solid but the stuttering still happens.. and it is not just me that this happens to... i have friends and the same happens to them.. and like i said this happens to ALL games.. even Dragon Age Origins! when i have it off the stuttering and weird screen tear is gone.

zheng3z commented 6 months ago

Can confirm the issue happens on win11 22631.3007 on Vega 56, 3090 and 12700k. Usually the stuttering starts after I opened certain apps, my case was MS Edge or MSI Center. To end the stutter, the only way was to disable DWM, closing the apps won't work. The weird thing is the stuttering was NOT reflected on the frametime graph, which is perfectly flat, indicating game rendering was smooth. Upon further tweaking I feel freesync can be the problem here, as I found the stutter mostly happen near the lower freesync range(~40fps). If I disable freesync in the driver, stuttering no longer happens I think microsoft updates broke some funcs of freesync b/c this problem was never noticed until recently.

KingCrazyC commented 6 months ago

Gonna check this out! but you are probably right!

KingCrazyC commented 6 months ago

Btw what do you mean about when you disable freesync in the driver?

zheng3z commented 6 months ago

Btw what do you mean about when you disable freesync in the driver?

Uncheck NVIDIA Control Panel->G-sync->G-sync compatible, or simply in your monitor's OSD disable freesync/adaptive sync

KingCrazyC commented 6 months ago

Then i did it the right way! thank you :)

lauralex commented 6 months ago

I have done further testing, people was saying that the DWM LUT turns off G-sync.. but that is not the case... I turned off G-Sync and i had the DWM LUT disabled to do some testing on games with both off and guess what? no stuttering or screen tear even without having G-Sync enabled... but when i enable the DWM the stuttering begins... so it has nothing to do with the DWM turning off G-Sync.. i understand that you could lose performance but this is NOT because of the performance loss you get.. the DWM as long as it is enabled you will get screen tear and stutters... please try to fix it @lauralex? or at least try and see what is causing this..

Unfortunately, it's not an easy task (not for me at least), it would require some graphics debugging using specialized tools (like Nvidia Nsights, etc.) to backtrack the root of the issue

KingCrazyC commented 6 months ago

So annoying that you can't use HDR on the Novideosrgb tool... is there a fix for that then?

casef commented 6 months ago

When you enable HDR in Windows, SDR content is already presented in sRGB, so there's no point to use novideo_sRGB on top anyway. If that's what you meant by that.

KingCrazyC commented 6 months ago

Fixed it! after some time i managed to create a HDR 3D LUT! it looks amazing in all games i try!