Yes, indeed, we should know the choice made for the calculation of sunrise and sunset to be able to compare the different results obtained.
What interests the most the photographer is the azimuth drawn on the map in order to prepare his shooting. And to plan the right day to shoot.
The problem I had is independent of your code. It is rather the problem of wsl2 which has trouble transferring OpenGL processing to windows