I have a 2019 Mac book Pro with an Intel Integrated GPU and a dedicated AMD GPU. MacOS has a feature called Automatic Graphics Switching which switches between GPUs to save power.
If I create an SFML Window with Automatic Graphics Switching turned on, the screen hitches for about half a second and sometimes flashes black before the window is displayed. It also closes very slowly. There are no problems while it is running, but opening and closing causes the entire system and background applications to lag for a second. In addition, window.setMouseCursorVisible(false) does not work when the feature is turned on. Turning off Automatic Graphics Switching fixes the problem.
Can you manually set which GPU the windows uses, or is there some other workaround to not have to manually turn off the feature in Settings?