为什么运行 Minecraft 会导致窗口撕裂/延迟

为什么运行 Minecraft 会导致窗口撕裂/延迟

我在 Ubuntu 18.04 + Xfce4 桌面上运行 Titan X 显卡,在 Minecraft 打开时拖动窗口时会出现撕裂现象。我有两个显示器,主显示器上的 Minecraft 窗口似乎总是会出现这种情况,但只要我将它们拖到辅助显示器上,所有窗口都会出现这种情况。主显示器上的其他窗口有点不规则。

在安装这两个之前:sudo apt install nvidia-cuda-toolkit gcc-6,按照建议这个帖子,我只经历过鼠标/窗口之间的延迟,但现在我也遇到了撕裂/阴影。仍然很延迟。

我也尝试过在我的 x-server 上强制使用完整的组合管道,并将其保存到我的 X11 文件中,正如建议的那样另一个帖子,但在应用并经历短暂的黑色监视器延迟(我认为是 X11 重置)后没有看到明显的变化。

一旦我关闭 Minecraft,问题就消失了。我不确定 Minecraft 的图形是用什么做的,但我一直在通过 Steam 在 Proton 中模拟游戏,没有任何类似问题。一旦我进入游戏菜单,撕裂就会再次出现。我不需要进入世界,所以我真的不相信这是资源问题。

我不完全确定我使用哪个存储库来安装我的 Nvidia 驱动程序,但它apt list nvidia*给了我一个相当长的 bionic、bionic-updates nvidia 版本列表:

nvidia-304/bionic 304.137-0ubuntu2 amd64
nvidia-304-dev/bionic 304.137-0ubuntu2 amd64
nvidia-304-updates/bionic 304.137-0ubuntu2 amd64
nvidia-304-updates-dev/bionic 304.137-0ubuntu2 amd64
nvidia-331/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-331-dev/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-331-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-331-updates-dev/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-331-updates-uvm/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-331-uvm/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-340/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-340-dev/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-340-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-340-updates-dev/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-340-updates-uvm/bionic 340.96-0ubuntu2 amd64
nvidia-340-uvm/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-346/bionic 352.63-0ubuntu3 amd64
nvidia-346-dev/bionic 352.63-0ubuntu3 amd64
nvidia-346-updates/bionic 352.63-0ubuntu3 amd64
nvidia-346-updates-dev/bionic 352.63-0ubuntu3 amd64
nvidia-352/bionic 361.45.11-0ubuntu4 amd64
nvidia-352-dev/bionic 361.45.11-0ubuntu4 amd64
nvidia-352-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-352-updates-dev/bionic 361.45.11-0ubuntu4 amd64
nvidia-361/bionic 367.57-0ubuntu5 amd64
nvidia-361-dev/bionic 367.57-0ubuntu5 amd64
nvidia-361-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-361-updates-dev/bionic 361.45.11-0ubuntu4 amd64
nvidia-367/bionic 375.82-0ubuntu3 amd64
nvidia-367-dev/bionic 375.82-0ubuntu3 amd64
nvidia-375/bionic 384.111-0ubuntu1 amd64
nvidia-375-dev/bionic 384.111-0ubuntu1 amd64
nvidia-384/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-384-dev/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-387/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-387-dev/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-390/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-390-dev/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-cg-dev/bionic 3.1.0013-3 amd64
nvidia-cg-doc/bionic,bionic 3.1.0013-3 all
nvidia-cg-toolkit/bionic 3.1.0013-3 amd64
nvidia-common/bionic-updates 1:0.5.2.3 amd64
nvidia-compute-utils-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-compute-utils-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-compute-utils-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-compute-utils-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-compute-utils-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-compute-utils-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-cuda-dev/bionic,now 9.1.85-3ubuntu1 amd64 [installed,automatic]
nvidia-cuda-doc/bionic,bionic,now 9.1.85-3ubuntu1 all [installed,automatic]
nvidia-cuda-gdb/bionic,now 9.1.85-3ubuntu1 amd64 [installed,automatic]
nvidia-cuda-toolkit/bionic,now 9.1.85-3ubuntu1 amd64 [installed]
nvidia-current/bionic 304.137-0ubuntu2 amd64
nvidia-current-dev/bionic 304.137-0ubuntu2 amd64
nvidia-dkms-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-dkms-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-dkms-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-dkms-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-dkms-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-dkms-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-driver-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-driver-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-driver-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-driver-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-driver-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed]
nvidia-driver-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-headless-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-headless-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-headless-418/bionic 418.56-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-no-dkms-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-headless-no-dkms-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-no-dkms-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-headless-no-dkms-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-headless-no-dkms-418/bionic 418.56-0ubuntu0~gpu18.04.1 amd64
nvidia-headless-no-dkms-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-kernel-common-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-kernel-common-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-kernel-common-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-kernel-common-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-kernel-common-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-kernel-common-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-kernel-source-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-kernel-source-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-kernel-source-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-kernel-source-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-kernel-source-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-kernel-source-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-libopencl1-304/bionic 304.137-0ubuntu2 amd64
nvidia-libopencl1-304-updates/bionic 304.137-0ubuntu2 amd64
nvidia-libopencl1-331/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-libopencl1-331-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-libopencl1-340/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-libopencl1-340-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-libopencl1-346/bionic 352.63-0ubuntu3 amd64
nvidia-libopencl1-346-updates/bionic 352.63-0ubuntu3 amd64
nvidia-libopencl1-352/bionic 361.45.11-0ubuntu4 amd64
nvidia-libopencl1-352-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-libopencl1-361/bionic 367.57-0ubuntu5 amd64
nvidia-libopencl1-361-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-libopencl1-367/bionic 375.82-0ubuntu3 amd64
nvidia-libopencl1-375/bionic 384.111-0ubuntu1 amd64
nvidia-libopencl1-384/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-libopencl1-387/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-libopencl1-390/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-modprobe/bionic 384.111-2 amd64
nvidia-nsight/bionic 9.1.85-3ubuntu1 amd64
nvidia-opencl-dev/bionic,now 9.1.85-3ubuntu1 amd64 [installed,automatic]
nvidia-opencl-icd-304/bionic 304.137-0ubuntu2 amd64
nvidia-opencl-icd-304-updates/bionic 304.137-0ubuntu2 amd64
nvidia-opencl-icd-331/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-opencl-icd-331-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-opencl-icd-340/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-opencl-icd-340-updates/bionic-updates,bionic 340.107-0ubuntu0.18.04.2 amd64
nvidia-opencl-icd-346/bionic 352.63-0ubuntu3 amd64
nvidia-opencl-icd-346-updates/bionic 352.63-0ubuntu3 amd64
nvidia-opencl-icd-352/bionic 361.45.11-0ubuntu4 amd64
nvidia-opencl-icd-352-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-opencl-icd-361/bionic 367.57-0ubuntu5 amd64
nvidia-opencl-icd-361-updates/bionic 361.45.11-0ubuntu4 amd64
nvidia-opencl-icd-367/bionic 375.82-0ubuntu3 amd64
nvidia-opencl-icd-375/bionic 384.111-0ubuntu1 amd64
nvidia-opencl-icd-384/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-opencl-icd-387/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-opencl-icd-390/bionic 390.87-0ubuntu0~gpu18.04.2 amd64
nvidia-prime/bionic-updates,bionic-updates,now 0.8.8.2 all [installed,automatic]
nvidia-profiler/bionic,now 9.1.85-3ubuntu1 amd64 [installed,automatic]
nvidia-settings/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-utils-390/bionic-updates,bionic-security,bionic 390.116-0ubuntu0.18.04.1 amd64
nvidia-utils-396/bionic 396.54-0ubuntu0~gpu18.04.1 amd64
nvidia-utils-410/bionic 410.104-0ubuntu0~18.04.1 amd64
nvidia-utils-415/bionic 415.27-0ubuntu0~gpu18.04.2 amd64
nvidia-utils-418/bionic,now 418.56-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-utils-430/bionic 430.09-0ubuntu0~gpu18.04.1 amd64
nvidia-visual-profiler/bionic,now 9.1.85-3ubuntu1 amd64 [installed,automatic]

有什么建议么?

答案1

您的系统很有可能允许 Optimus 工作!为此感到高兴吧,因为 Optimus 在 *nix 上 99% 的时间都无法工作。

这样一来,所有 nVidia 芯片组在任何 Linux 发行版上都完全不支持 V-Sync。很有可能它使用 Intel HD,直到 Optimus 发出“哦,等等,我需要做这个”然后它才切换,而且由于 nVidia 上根本没有 V-Sync,整个屏幕都会撕裂。

相关内容