OpenGL context with continuous repaint causes UI freeze

I should add that this was on Windows 10. I will try to get my hands on a Win11 system to test there as well. The example in this thread, where the poster reports problems for Win11, also causes problems on my Linux system: Windows 11 Issue with openGL