为什么使用“optirun glxspheres64”与仅使用“glxspheres64”相比可以获得相同的 FPS?

为什么使用“optirun glxspheres64”与仅使用“glxspheres64”相比可以获得相同的 FPS?
$ vblank_mode=0 optirun ./glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 750M/PCIe/SSE2
218.417930 frames/sec - 243.754410 Mpixels/sec
222.284833 frames/sec - 248.069873 Mpixels/sec
220.976371 frames/sec - 246.609630 Mpixels/sec
213.462514 frames/sec - 238.224166 Mpixels/sec
217.160795 frames/sec - 242.351447 Mpixels/sec
219.719268 frames/sec - 245.206703 Mpixels/sec

$ vblank_mode=0 ./glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Haswell Mobile 
244.416640 frames/sec - 272.768970 Mpixels/sec
214.628904 frames/sec - 239.525857 Mpixels/sec
215.807053 frames/sec - 240.840672 Mpixels/sec
212.618440 frames/sec - 237.282179 Mpixels/sec
215.407467 frames/sec - 240.394733 Mpixels/sec
217.956713 frames/sec - 243.239692 Mpixels/sec
215.350718 frames/sec - 240.331402 Mpixels/sec

难道没什么问题吗?

答案1

我做到了,老兄!

删除 Bumblebee 即可

sudo apt-get purge bumblebee*

然后对 Nvidia-Prime 说“你好!”

sudo apt-get install nvidia-prime

从 nvidia-settings 中选择显卡后(intel 或 nvidia)

你应该退出然后回来。(不幸的是,每次更改后都会这样)

新的 glxspheres64 输出;

./glxspheres64

Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x62
Context is Direct
OpenGL Renderer: GeForce GT 750M/PCIe/SSE2
1278.419990 frames/sec - 1426.716709 Mpixels/sec
1313.904494 frames/sec - 1466.317416 Mpixels/sec
1319.530930 frames/sec - 1472.596518 Mpixels/sec
1315.465344 frames/sec - 1468.059324 Mpixels/sec
1319.271645 frames/sec - 1472.307156 Mpixels/sec

最终取得了好成绩:)

相关内容