Optimization DRI for double performance

X have some options for better work, most time X just use the universality options for run on most computer.

But you can tweak them. With the best result, you will get the double performance.

My system is Gentoo 2006.1 with X.org Server 1.1.1-r3 and xf86-video-ati 6.6.3 with DRI(Direct Render Interface), also I have the beryl 0.1.4 and AIXGL for the 3D desktop test.

Hardware is Powerbook pre-High definition, G4 1.67 and ATI 9700 with 128M.

Let&aposs see the default Display adapter configuration.

Section &quotDevice&quot

Identifier &quotCard0&quot

Driver &quotati&quot

VendorName &quotATI Technologies Inc&quot

BoardName &quotRV350 [Mobility Radeon 9600 M10]&quot


The frames per seconds benchmark with glxgear looks like below.


Add some options in this device section for tweak.

Option &quotAGPMode&quot &quot4&quot

Option &quotUseFBDev&quot &quotfalse&quot

Option &quotAGPFastWrite&quot &quottrue&quot

Option &quotEnablePageFlip&quot &quottrue&quot

Option &quotDynamicClocks&quot &quottrue&quot

Option &quotRenderAccel&quot &quottrue&quot

Let&aposs bechmark and see it again.


Wow. double performance !

How about these options works in the full hardware acceleration berly ?


Oh, it back to half and unstable. But I think it&aposs the free ati driver&aposs problem.

I feel Intel&aposs GMA series open source driver is much better and stable than it, I will also test it if I have time.

OK, What&aposs these options and value means ?

Option &quotAGPMode&quot &quot4&quot

AGPMode define the bandwidth of the AGP bus, the 4 means 4 times than the default AGP bus bandwidth, the defualt AGP running on 66Mhz with 266MB/s bandwidth, and Xorg will auto decide in 1X in default, you can tweak this option for more bandwith, the highest value of this option is 8 but it&aposs need you conform your hardware support it.

Option &quotUseFBDev&quot &quotfalse&quot

It&aposs a IMPORTANT option.

Most display adapter support and universal driver mode called framebuffer. It create a spool in memery and map it to the screen pixel, it&aposs a FB device. Xorg write data into this spool, and the the driver read from this spool and write the data to the screen. it&aposs not fully optimized.

ATI driver support a DMA(Direct Memery Access) mode, Xorg can write the data into the memory of the display adapter, it means Xorg can write to screen skip the memory spool of the FB device.

Option &quotAGPFastWrite&quot &quottrue&quot

Fast write option looks like FBDev, I&apost also a memery access mode of display adapter.

It&aposs skip memory access and write data to display adapter directly.

Option &quotEnablePageFlip&quot &quottrue&quot

Enable Page Flip will increases performance, it tweak the memory access mode.

This option will be disabled if EAX architecture is in used.

Option &quotDynamicClocks&quot &quottrue&quot

DynamicClock is &quotIntel SpeedStep&quot technology for display chips. it adjust the performance of display adapter only for save energy.

Option &quotRenderAccel&quot &quottrue&quot

RenderAccel looks like it name, enable it for Render Acceleration Mode.

This option is default enabled.

Other options will increases performance more, I will do more around it and blog it more.