~$ __GL_SYNC_TO_VBLANK=1 glxgearsRunning synchronized to the vertical refresh. The framerate should beapproximately the same as the monitor refresh rate.299 frames in 5.0 seconds = 59.631 FPS~$ __GL_SYNC_TO_VBLANK=0 glxgears123259 frames in 5.0 seconds = 24651.678 FPS
这对我来说在Ubuntu 14.04上使用346.46 NVIDIA驱动程序。
ali_m answered 2019-05-29T07:48:28Z
25 votes
适用于英特尔显卡和AMD / ATI开源图形驱动程序
找到nvidia-settings的“设备”部分,其中包含以下指令之一:
nvidia-settings
nvidia-settings
nvidia-settings
并将以下行添加到该部分:
Option "SwapbuffersWait" "false"
并将nvidia-settings环境变量设置为X Screen 0 / OpenGL Settings / Sync to VBlank运行您的应用程序:
---------------------------------------------------------------------------------------------------------------------
linux - 禁用glxgears的垂直同步
willsteel asked 2019-05-29T07:47:40Z
[size=1.2em]7个解决方案
willsteel answered 2019-05-29T07:47:55Z
ali_m answered 2019-05-29T07:48:28Z
适用于英特尔显卡和AMD / ATI开源图形驱动程序
nocnokneo answered 2019-05-29T07:49:44Z
neutro answered 2019-05-29T07:50:14Z
olmerg answered 2019-05-29T07:51:21Z
kevinf answered 2019-05-29T07:52:01Z
Krellan answered 2019-05-29T07:52:37Z
translate from https://stackoverflow.com:/questions/17196117/disable-vertical-sync-for-glxgears