Try to turn off 3D Acceleration in VirtualBox or VMware.


When you turn off 3D Acceleration, CPU will load much heavier instead of GPU so that you should increase your CPU power (increase your Virtual Machine CPU number, or upgrade your physical machine CPU). Though CPU will load heavier than before, that’s worthy because it only takes heavy load while running Pygame. While using other applications, CPU behaves as usual.
The system will pop this warning notification, just ignore it.

For VirtualBox users, maybe you find after switching VMSVGA to VBoxVGA or VBoxSVGA, it works more normally. That is because VBoxVGA and VBoxSVGA won’t enable 3D Acceleration. I recommend using VMSVGA by default.
So when you face the graphic problem, don’t waste your time like me, just turn off 3D Acceleration.
If you meet other problems while using VirtualBox for Linux Guest, see this post: https://jaylinwu.wordpress.com/2022/01/03/virtualbox-settings-for-linux-guest/