作者polaroid (pola)
看板LinuxDev
标题Re: [问题] 关於 OpenGL 与 X Window
时间Wed Sep 3 13:43:31 2008
※ 引述《HalfLucifer (部游读动)》之铭言:
: 请问有没有办法在不启动 X Window 的情况下,
: 执行以 OpenGL 或者是 SDL 撰写的程式?
: 因为我想实验看看,如果用这样的方法,
: 3D 程式的执行效能会不会好一点。
: 谢谢。
it depends on 你做什麽事,
你可能做2D rendering (image drawing)/Video flipping/3D animation
在Linu下的VGA interface
1. Framebuffer device (kernel space driver)
: VESA or HW framebuffer device,
: VESA 是标准, 几乎所有VGA card都support,但是使用VESA framebuffer device
: 代表所有的VGA运算都是由CPU来做. performance可想而知.
: 有些公司有出HW的framebuffer driver, 效能不错, for example: Intel integrated VGA
2. X-window
: fbdev xserver <-Xwindow藉由 fb device来rander, 所以和frame buffer device一样.
: VESA xserver <-VESA的 xserver, CPU运算
: HW DDX xserver with xc extension , good performance with 2D rendering and Video flipping.
: AIGLX, 3D xserver with DRI, DRM, good performance.
3. User sapce VGA driver
: 大部分是 close source, performance 一般
: MESA solo是 CPU 模拟3D运算, performance烂透了
但可以说用3D的performance都会比较好. 不管是做video flipping/image drawing/or animation.
但是support比较差.
--
an amateur of photography,
enjoy recording the wonderful things which happening everyday,
like to try different way and angle to capture the scene,
love the nature lighting and scene.
don't like to use flash light.
that's me.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 16.130.24.8
1F:推 HalfLucifer:所以如果我要使用绘图晶片的硬体加速能力写3D程式 09/05 14:50
2F:→ HalfLucifer:就必定需要透过 X-window 的启动罗? 09/05 14:51
3F:→ HalfLucifer:这方面的概念我我还没弄清楚 请多指教 谢谢 :) 09/05 14:52