Hello Thomas,
It's an interesting question, and not something that James Stringer writes alot about in his readme.
While i am a subject matter expert on Hyper-V, this is merely my speculation
James mentions he is using GPU technologies from WSL2 and Windows Sandbox.
Both technologies uses the Hyper-V technology to abstract the hardware layer and give you a Virtual Machine.
But i do not think James uses the real GPU partitioning technology for Hyper-V which has only just been released for Windows Server 2025 (Hyper-V server) as this has strict hardware requirements for the GPU:
However, i think James uses the WDDM GPU Virtualization technology, which is a part of Windows Sandbox (which again is based on the overall Hyper-V Virtualization technology)
That would explain why you are able to use consumer GPU's for your virtual machines, and aren't limited to the strict GPU requirements.
This works fine for a Windows Sandbox environment, where security isn't of a concern, since you are only allowed to run 1 Windows Sandbox instance by default.
From the Notes on Windows Sandbox Documentation
Note
Enabling virtualized GPU can potentially increase the attack surface of the sandbox.
This is OK when running 1 VM on your own machine sharing the same GPU Kernel, but unacceptable when hosting multiple VM's for a number of customers.
It would seem to me that James has figured out a way to use the WDDM GPU Virtualization solution against a normal Hyper-V VM, and not only the Windows Sandbox VM.
That would explain why the underlying VM that you create are so dependent on the host GPU drivers, because it uses the WDDM GPU Virtualization method (shares GPU Kernel with the host) and not true GPU partitioning like seen on Windows Server 2025, where the VM has a true GPU partitioning and does not share GPU kernel with the host.
So yes, unlike Windows Sandbox, because of James implementation, it's likely presumed that GPU resources are still allocated even after the VM is powered off (is would be the case of a real GPU partitioning solution).
In Windows Sandbox, GPU resources are released once you exit the VM (it's destroyed) however, since this is a normal VM i presume it does not release WDDM Graphics resources.
Razzmatazzz Interactive script also confirms my theory, since there is a feature to disable GPU acceleration of your VM's.
Hope this answers your question
Regards
Nicklas