Solved Refresh rate Kodi
#16
OK that confirms it but still no idea what causes this.
The "CWinEventsWin32::WndProc: display change event" is supposed to be a line or two after "DX::DeviceResources::SetFullScreen: switching from..." depending on windowed fullscreen or fullscreen exclusive.
Raised later than "DX::DeviceResources::CreateBackBuffer: create buffers." like in your log and it will be detected as an external change.

Your nVidia driver is very recent and is unlikely to be the problem (I'm at 545.92). Maybe it's a new behavior of Windows 11 but I don't have such a computer to test, only Windows 10.

As a workaround maybe setting kodi.exe in Windows 10 or Windows 8.1 compatibility mode might do something to restore the usual timing.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#17
Sorry for the late update. I have also tried to put Kodi in compatibility mode but without success. I'm out of ideas, but as a as a compromise I start and stop Kodi via a command sctipt that sets Windows back to the correct resolution and refresh rate on exit. The only thing I'm missing now is to set HDR off on exit if Kodi doesn't turn it off, which happens from time to time. It doesn't look like Windows has an API where you can read whether HDR is off or on, only toggle. As a side project, I have tested the refresh rate toggling problem with the "Plex HTPC" player running the mpv engine. It works fine, but this solution has other bigger problems so I'm sticking with Kodi for now.

Another problem I have discovered is that when you pause a video, stuttering occurs when you start the video again. I bypass this problem by avoiding pause but rather stopping it completely and then starting it again.

I've been using Kodi since XBMC4Xbox on a modded Xbox Classic over 10 years ago, so I can live with a few minor issues here and there. 😁
Reply
#18
I'm reluctant to propose a code change for this because there have been users on Windows 11 using refresh rate and HDR switching (including team members) for years, and this is the first report of the issue.

I would suggest attacking this from the Windows side. Builtin OS repair tools, maybe there is interference from a remoting tool like VNC, or antivirus, ...
The atomic option would be to reinstall Win11 on a separate disk or other partition to see what happens with a totally clean install. And then add your programs/configurations little by little to find out the culprit.

Yes there is an API to find the HDR status of a screen. See function CWIN32Util::GetWindowsHDRStatus() of Kodi, Windows functions GetDisplayConfigBufferSizes()/QueryDisplayConfig().
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#19
I understand well that you do not initiate changes to the code, this is most likely a problem with my installation. I'm getting a new PC in a few days, then I'll start from scratch. Promise to update here with the experience both stuttering and refresh rate problems.

I was not aware that there was an API that actually reads the HDR status as all the tools for Windows I have found only toggle off or on regardless of what HDR is actually set to. Windows has a built-in keyboard shortcut for this (Win + ALT + B) but no on or off, only toggle.
Reply
#20
A quick feedback.

After a reinstallation of Windows 11 and a new graphics card (Nvidia 4060), Kodi behaves normally again. Refresh rate is set to 60 after stopping playback. This was probably not a Kodi problem.

Thank you for your commitment.
Reply
#21
Great, solved!
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#22
And the stuttering is gone. Back to Kodi - Kodi forever!! 🙏❤️
Reply
#23
(2023-11-25, 11:59)kailimi Wrote: And the stuttering is gone. Back to Kodi - Kodi forever!! 🙏❤️
Indeed. There's few things as satisfying as a perfectly running Kodi HTPC machine. At least for me.
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#24
Thread marked solved.

Re-Opened at User Request, starting post #25
Reply
#25
Opening this thread again. 

I have located the problem - it is with the 24H2 version of Windows 11 where the refresh problem occurs. With 23H2 it works as it should, but as soon as I install the developer or preview version of Windows 11 (24H2), the refresh rate stays at the same frequency as the movie when I press stop and moving around in the Kodi GUI. If I reverse back to Windows 11 23H2, Kodi always toggles back to desktop refresh rate(60hz).
Reply
#26
Now that 24H2 is official, maybe it's time for this to be looked at?
Reply
#27
Have you confirmed the issue in official 24H2?  Wouldn't surprise me if there are various 24H2-related issues.  Plenty of non-Kodi issues being reported including BSODs.

Wonder if Windows SDK (10.0.26100) should be used when building on Windows?

scott s.
.
Reply
#28
(2024-10-10, 22:41)scott967 Wrote: Have you confirmed the issue in official 24H2?  Wouldn't surprise me if there are various 24H2-related issues.  Plenty of non-Kodi issues being reported including BSODs.

Wonder if Windows SDK (10.0.26100) should be used when building on Windows?

scott s.
.

I have only "confirmed" the problem here in this thread, where else can I do it? 

I wouldn't be surprised either that there would be some challenges with a new Windows build. Until the issue is resolved I am running "Plex HTPC".
Reply
#29
There may be differences between the 24H2 preview that caused issues earlier and the final release.
A SDK bump is unlikely to help. I don't have a W11 computer to try 24H2.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#30
(2024-10-12, 18:23)CrystalP Wrote: There may be differences between the 24H2 preview that caused issues earlier and the final release.
A SDK bump is unlikely to help. I don't have a W11 computer to try 24H2.

Ahh sorry, i misunderstood scott967 but yes I can confirm that the bug is identical in both the official and the beta version of the 24H2 build.
Reply

Logout Mark Read Team Forum Stats Members Help
Refresh rate Kodi0