Several people have reported that since the last few Win 10 updates they have had issues with more lag than usual. Some suggested articles are below.
https://www.howtogeek.com/273180/how-to-disable-windows-10s-game-dvr-and-game-bar/
https://winaero.com/blog/how-to-uninstall-and-remove-the-xbox-app-in-windows-10/
https://www.howtogeek.com/273180/how-to-disable-windows-10s-game-dvr-and-game-bar/
https://winaero.com/blog/how-to-uninstall-and-remove-the-xbox-app-in-windows-10/