Page 1 of 1

How Android sysytem supports GPU hardware on Windows

Posted: 27. Jun 2020, 03:45
by Adam.li
Hello, I'm a technical team from China.
We have a long-standing problem in the process of using VirtualBox.
How can VirtualBox give us Android X86 system supports host's GPU hardware?

We see some precedents, such as: China's free simulator ('逍遥模拟器','夜神模拟器','雷电模拟器'). They all use VirtualBox and successful the support of GPU.

thank you very much.

Re: How Android sysytem supports GPU hardware on Windows

Posted: 27. Jun 2020, 14:18
by scottgus1
Virtualbox does not let the virtual machine use the host PC's GPU directly. The GPU inside the VM is simulated, and is a different piece of 'hardware' than the host's GPU.

The Virtualbox VM GPU looks like an old 1995-era VGA video card, with basic capabilities. Just about every operating system that can run in Virtualbox has drivers to use this old video card.

If Guest Additions are installed in the VM, then extra video drivers for the Virtualbox video card are installed in the VM. These extra drivers allow the OS in the VM to access more screen sizes, unusual screen sizes based on the size of the VM's window, and full-screen size of the host PC.

If 3D acceleration is turned on in the VM's settings in the main Virtualbox window, and the Guest Additions are installed, then the Virtualbox video card presents 3D capabilities to the VM's OS. When the guest OS wants to run a 3D command, Virtualbox runs the same command on the host PC's video card, then passes the results of the command into the VM's OS.

So the VM's OS never directly runs the host's video card. Virtualbox can receive 3D requests from the VM's OS, run these requests on the host's video card, then give the results to the VM. Guest Additions must be installed for these requests to be processed.

There is only one problem: There are no Guest Additions for Android.