casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.87k stars 75 forks source link

Can cassowary work with a second GPU - passthrough? #137

Open buzuddha opened 10 months ago

buzuddha commented 10 months ago

Is your feature request related to a problem? Please describe. I'm frustrated by choppy rendering of the MS apps. It's not that bad, but I'm guessing it'd be faster if they had access to a dedicated GPU.

Describe the solution you'd like Could cassowary work in such a way that I passthrough a second GPU to the VM, which can render the windows, and then these are piped back through spice/other to Linux/GNOME?

Describe alternatives you've considered I'm using virtio+openGL and 3D rendering, but it's still a tidbit choppy.

Additional context I have experience with GPU passthrough, but don't exactly understand what's going on under the hood with spice. Happy to help develop this!

buzuddha commented 10 months ago

Ok! Got this working! Installed the nvidia drivers and now I can passthrough ms programs from windows into linux! Basically just followed a typical passthrough strategy, changed video virtio -> none and everything works.

Still a bit choppy, looks like 30hz and I'm using a M4000 with a DP -> HDMI to the monitor. I got black boxes if the PT GPU isn't hooked up to a monitor. So the next question is does a 4k60hz DP dummy exist? Perhaps that's not needed. I do see there is a registry edit in windows that can allow for 60hz framerate.