代码: 全选
代码:
glxinfo |grep -e 'direct' -e 'OpenGL'
引用:
direct rendering: Yes
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3850
OpenGL version string: 2.1.7769 Release
OpenGL extensions:
但实际上compiz环境下,
direct rendering: 应该为NO ,才可开启应用,
我昨天又测试了一下,如强行将 direct rendering设置为 YES
3D 将不可用。
下面是 compiz 开发组的讨论:
In fact, that's not a real bug : compiz indeed sets LIBGL_ALWAYS_INDIRECT for its own process and for his child processes only. compiz needs that to work properly.
It means that if you start a terminal from the Gnome/KDE menu, you'll get "direct rendering: Yes". On the other hand, if you start gnome-terminal for instance via compiz using a key binding for example, you will get "direct rendering: No (LIBGL_ALWAYS_INDIRECT set)".
The problem is in fact a bit more complex : when I start gnome-terminal from the gnome menu, I get "direct rendering: No (LIBGL_ALWAYS_INDIRECT set)" : as I activated transparency for the background of gnome-terminal, it starts as child process of compiz. So, all is all right : xterm, which is very spartan and doesn't support transparency, prints "direct rendering: Yes" when started from the gnome menu.