My computer hangs frequently while playing games in the yuzu emulator using the OpenGL backend. Stutters cause the display to periodically freeze and input devices to drop events. When running glxgears in the background, it drops frames during the stutter. yuzu has a Vulkan backend that is not affected by this issue. No other OpenGL application that I have causes this issue, and the issue is not observed in Windows 10.
Tested on multiple kernels in Manjaro: the stutters are reproducible on Linux 5.4, 5.5, 5.6, and 5.6.12-24-tkg-pds, while using 4.19 does not cause stutters. Tested on NVIDIA drivers 390.132, 440.66.11, and 440.82, all cause stutters on 5.6. Desktop environment and compositor on/off seems to not influence stuttering. Stutters are present on my GTX 750 Ti, GTX 970, and GTX 980 Ti, and in my conversation with other yuzu users, the issue is reproducible on an RTX 2080 Ti in Arch Linux.
In my efforts to get the bug report log, running
startx -- -verbose 6 with no display-related xorg.conf files causes the X session to use my second monitor as the primary monitor, and the stutters are not observed even on recent kernel versions. But if I apply any conf generated by nvidia-settings, the stutters come back. In addition, when disabling the first monitor in my desktop environment and restarting X, stutters still happen regardless of conf files.
inxi -F -v8 output here: http://ix.io/2mlF
nvidia bug report log gzipped: nvidia-bug-report.log (434.8 KB)
apitrace that reproduces the issue (750 MB compressed, 3.4 GB uncompressed): https://drive.google.com/open?id=1assSjTpRDMNZRS0X6xQKSqYkwY56JebF
Using the apitrace, the most consistent way to get stutters is when it’s unloading. Otherwise, it doesn’t seem to stutter much during the replay (at least 2 stutters), and run-to-run stutters are inconsistent during the replay. It was captured on Linux 4.19.121, thus no stutters were present during the capture.