Posts: 1,432
Joined: Apr 2010
Reputation:
120
CrystalP
Team-Kodi Developer
Posts: 1,432
2023-11-03, 21:02
(This post was last modified: 2023-11-03, 21:12 by Karellen. Edited 2 times in total.
Edit Reason: disable smilies
)
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.
Posts: 20
Joined: Nov 2023
Reputation:
2
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. 😁
Posts: 1,432
Joined: Apr 2010
Reputation:
120
CrystalP
Team-Kodi Developer
Posts: 1,432
2023-11-12, 02:03
(This post was last modified: 2023-11-12, 02:05 by CrystalP. Edited 1 time in total.)
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().
Posts: 20
Joined: Nov 2023
Reputation:
2
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.
Posts: 20
Joined: Nov 2023
Reputation:
2
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.
Posts: 20
Joined: Nov 2023
Reputation:
2
And the stuttering is gone. Back to Kodi - Kodi forever!! 🙏❤️
Posts: 14,154
Joined: Mar 2010
Reputation:
575
PatK
Team-Kodi Member
Posts: 14,154
2023-11-30, 18:58
(This post was last modified: 2024-09-08, 18:58 by PatK. Edited 1 time in total.)
Thread marked solved.
Re-Opened at User Request, starting post #25
Posts: 20
Joined: Nov 2023
Reputation:
2
2024-09-08, 18:02
(This post was last modified: 2024-10-09, 12:20 by kailimi. Edited 1 time in total.)
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).
Posts: 20
Joined: Nov 2023
Reputation:
2
Now that 24H2 is official, maybe it's time for this to be looked at?
Posts: 5,466
Joined: Jul 2012
Reputation:
383
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.
.
Posts: 1,432
Joined: Apr 2010
Reputation:
120
CrystalP
Team-Kodi Developer
Posts: 1,432
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.