In Windows Graphics Settings , add the Hogwarts Legacy executable and set the GPU preference to "High Performance".