First, please check if this solution works on your computer.
Open your nvidia-settings, open "X Server Display Configuration", select your screen (if you have multiple monitors like me), click the "Advanced..." button in the bottom, click on the "Force Full Composition Pipeline" checkbox, and then click the "Apply" button.
Ubuntu 22.04 Configuration Notes
7 months ago
Install NVIDIA Driver
DO NOT INSTALL THIRD PARTY GRAPHICS DRIVERS IN UBUNTU INSTALLATION INTERFACE!!!
9 months ago
This is my first game written in Assembly (MIPS32 architecture).