为什么primusrun比optirun慢?


9

有人可以解释一下这些结果吗?是primusrun太聪明了glxspheres,只是没有做额外的工作?

...:~$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0xaf
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile 
59.811274 frames/sec - 66.749382 Mpixels/sec
59.577921 frames/sec - 66.488960 Mpixels/sec
59.791245 frames/sec - 66.727029 Mpixels/sec
59.723333 frames/sec - 66.651240 Mpixels/sec
...:~$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: Quadro K1000M/PCIe/SSE2
190.833067 frames/sec - 212.969703 Mpixels/sec
209.895160 frames/sec - 234.242999 Mpixels/sec
207.980413 frames/sec - 232.106141 Mpixels/sec
...:~$ primusrun glxspheres
Polygons in scene: 62464
Visual ID of window: 0xaf
Context is Direct
OpenGL Renderer: Quadro K1000M/PCIe/SSE2
61.001631 frames/sec - 68.077820 Mpixels/sec
59.677170 frames/sec - 66.599722 Mpixels/sec
59.715808 frames/sec - 66.642842 Mpixels/sec

Ubuntu 12.04 x64,Lenovo W530 w / Intel i7 @ 2.8 GHz

Answers:


17

从Primus 常见问题解答

Q: Performance does not exceed 60 fps, I was getting more with optirun/VirtualGL.
A: This is the effect of vblank synchronisation. For benchmarking, you can use 
   vblank_mode=0 primusrun ..., but in practice this will probably only 
   waste power, as your LCD panel does not display more than 60 frames 
   per second anyway.

哇...我发誓我花了至少20分钟的时间在谷歌上搜索...抱歉,这很明显。我应该删除问题吗?
VF1

3
除非有其他问题/答案说明这一点,否则我认为最好还是保留它,因为它可能会帮助具有相同疑问的其他人。我只是在开始使用Primus之后一周才发现这个的
Salem

1
好。顺便说一句,使用vblank_mode=0使其速度更快。
VF1
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.