It's rather hard to do that without 2 GPUs, gpu partitioning just isn't a thing on Linux yet and virtual GPUs I have mostly found with virtual box with mixed success. You CAN have a full GPU passthrough but that's basically dual booting with extra steps, not really worth it for gaming(where it will complain with the anti cheat shit games).
Very, very minor games I have made work in a VM but we're talking so old you can just run them on Linux through wine.
It's rather hard to do that without 2 GPUs, gpu partitioning just isn't a thing on Linux yet and virtual GPUs I have mostly found with virtual box with mixed success. You CAN have a full GPU passthrough but that's basically dual booting with extra steps, not really worth it for gaming(where it will complain with the anti cheat shit games).
Very, very minor games I have made work in a VM but we're talking so old you can just run them on Linux through wine.