Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2009, 12:46 PM
pheet pheet is offline
Super Moderator
 
Join Date: Mar 2007
Location: Berlin
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Default Poor performance with intel based cards - possible fix
Disclaimer: I have an onboard 945G based card, your milage may vary.
Also the 2nd half of this post is a bit of a rant ;-)

Background

After installing PCBSD 7.1 on my new machine, I noticed graphics performance was extremely poor. Although it's an onboard card using shared memory (256Mb) and I wasn't expecting anything wonderful, it was noticable worse than my old nvida tnt2 32mb.

Running glxgears (yes I know it's not a benchmark, but sometimes it gives a useful indication), showed a fps of 75! Games like Warzone2100 were also noticably slower, etc.

After much playing with xorg.conf, googling, and reading, I think I've found a possible fix.

Quick Fix

Install driconf.
Run driconf as a normal user.
Where it says "Synchronization with vertical refresh", select the option "Inital swap interval 0, obey application's choice".

Tada, ~ 600fps.

Explanation (As far as I can tell)

Xorg are/have moved to a new memory management (?) system called GEM. This however hasn't yet been ported to FreeBSD, AFAIK it requires kernel code changes (they should maybe change their name to linuxx.org, with apologies to Eric Anholt). This hasn't stoped them releasing drivers that assume GEM is supported, and when not fallback to a safe mode.

Thus, on FreeBSD, every X application spits out:
Quote:
Failed to initialize GEM. Falling back to classic.
When this happens, vertical synchonisation is also forced. My monitor runs at 75Hz, so my fps was limited to 75. driconf allows us to fix this.

Acceleration Modes

The intel graphics driver currently has 3 (yes 3!) possible hardware acceleration modes. These are:
  • UXA - This is the shiny new mode, and the most unstable IME. On my setup I get the black screen of death when x starts (a known bug). Not curently recommended, though if it works for you it might give the best performance.
    [/*:m:20gkique]
  • EXA - Older mode. I'm using this with following options:
    Code:
    Option  "AccelMethod" "EXA"                   
    Option "MigrationHeuristic" "greedy"
    Option "ExaNoComposite" "True"
    Works ok, but sufferes from the well known missing icons in the KDE systray bug.
    [/*:m:20gkique]
  • XAA - old mode, and deprecated, which means that they're not even pretending to fix the bugs. Gives me random freezes/system crashs. Try it if everything else fails.[/*:m:20gkique]

The State of the Art

Important to realise, that in it's current form, the xorg intel video driver is a steaming pile of shit. Updating it to 2.7.1 and xorg-server 1.6 (no easy task with PCBSD's localbase innovation) doesn't improve matters. If it's any consolation, the Ubuntu forums are also full of reports of decreased performance, bugs, and system freezes. Hopefuly it'll get better in the future. Was nice of x.org to depreacte the old i810 driver (and it's deleted from ports) before releasing a new stable driver...
Reply With Quote
  #2  
Old 06-23-2009, 01:32 AM
graedus graedus is offline
Senior Member
 
Join Date: Jul 2006
Location: .mx
Posts: 606
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Poor performance with intel based cards - possible fix
Thanks for sharing the tip! Had a bit of dependency hell (python25->26), but if finally installed.

Had to run driconf from the menu/run window (as normal user with runports from the cli it failed)

Indeed my glxgears jumped from ~50 fps to ~180, with the flashy UXA Acceleration Mode. KDE4 was originally responsive, but now it's snappier!

Specs: Intel 945GME on an Acer Aspire One (Atom 1.6ghz 1GiB RAM + HDD)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
lg monitor poor resolution samuel General Questions 0 12-01-2009 04:25 AM
how to mount sd cards with pcmcia based internal card reader TerryP Laptops 4 05-09-2008 10:18 PM
Intel 945gm chipset x11 won't start sees it as intel i810 ezcomputers Graphics Cards 2 02-15-2007 11:56 AM
Poor RAID-0 performance Tanked FreeBSD Help 12 12-31-2006 11:31 PM
FOR those of you with atheros based wireless cards... phunky General Questions 4 02-12-2006 05:07 AM


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.