PlaneShift

Support => Linux Specific Issues => Topic started by: Rizin on April 27, 2008, 05:45:25 am

Title: How to fix graphics lag on intel laptops
Post by: Rizin on April 27, 2008, 05:45:25 am
Possible fix for graphics based sluggishness when running PS on a laptop with intel video.

This worked for me, and another person willing to test. We can now both run PS without any lag, and this includes Hydlaa and the Bronze Doors area.

Step 1:

Follow the directions from another post, copied here for ease of access:

From irc in #planeshift a few days ago: (I hope kayden does not mind)

Code: [Select]
Kayden: glxinfo | grep Mesa     ....I'm presuming you have Mesa 7.x
Kayden: edit data/config/gldrivers.xml
Kayden: near the bottom there should be a rule
Kayden:     <rule description="Intel DRI: Disable ARB_fragment_program">
Kayden: change the pattern from 6\.5\.. to 7\.0\..
Kayden:         <regexp string="glversion" pattern="Mesa 7\.0\.." />

I actually changed all lines that had "6\.5\.." to match "7\.0\.." for Mesa.

Step 2:

Install Driconf (I used synaptic package manager on kubuntu and searched for driconf).

Step 3:

Go into your main menu > settings > 3D Acceleration (DRI Icon) and disable both options for graphic quality (texture compression, support for big textures)

Step 4:


Start PS and enjoy! Might be a bit bright overall, but it should run smoothly.   8)
Title: Re: How to fix graphics lag on intel laptops
Post by: Nightw0lf on July 09, 2008, 11:00:24 pm
when I put edit/data/config/gldrivers.xml it sais "no write permissions for this file"  help.
Title: Re: How to fix graphics lag on intel laptops
Post by: Caarrie on July 09, 2008, 11:52:53 pm
when I put edit/data/config/gldrivers.xml it sais "no write permissions for this file"  help.

open it as root in your editor
Title: Re: How to fix graphics lag on intel laptops
Post by: Nightw0lf on July 10, 2008, 12:52:33 am
how do I do that?
Title: Re: How to fix graphics lag on intel laptops
Post by: Caarrie on July 10, 2008, 01:11:19 am
sudo gedit /opt/PlaneShift/data/config/gldrivers.xml
enter your password
edit file
save

if you dont use gedit put in other text editor in place.
Title: Re: How to fix graphics lag on intel laptops
Post by: Nightw0lf on July 10, 2008, 01:21:22 am
all the lines that say  <regexp string="glversion" pattern="Mesa 6\.5\.." /> 

do I change all of them to 7/.0?
Title: Re: How to fix graphics lag on intel laptops
Post by: Caarrie on July 10, 2008, 01:43:52 am
if glxinfo | grep Mesa says you have 7 then yes do that if not do whatever number it says.
Title: Re: How to fix graphics lag on intel laptops
Post by: Nightw0lf on July 10, 2008, 01:46:11 am
i got 1.4 Mesa 7.0.3-rc2 so what do i put?
Title: Re: How to fix graphics lag on intel laptops
Post by: Vorodie on August 23, 2008, 01:32:02 am
i used
Code: [Select]
<regexp string="glversion" pattern="Mesa 7\.0\..*" />and it worked for me... meaning that i was able to run the client (issue in this thread http://hydlaa.com/smf/index.php?topic=32333.0 )
i still get some lag in DR and Hydlaa. i'm heading to BD, so i'll check the lagging there as well.

(i use distance 90)
Title: Re: How to fix graphics lag on intel laptops
Post by: Vorodie on December 01, 2008, 12:38:07 am
this solution no longer works with the latest update.
i get the following error:
Code: [Select]
psclient.bin: intel_regions.c:231: intel_region_data: Assertion `dst_offset + dstx + width + (dsty + height - 1) * dst->pitch * dst->cpp <= dst->pitch * dst->cpp * dst->height' failed.
(0) : fatal error C9999: *** exception during compilation ***
Title: Re: How to fix graphics lag on intel laptops
Post by: Rizin on December 01, 2008, 02:21:07 am
I haven't had the chance to test the update on this configuration, and unless I replace some parts I will not be able to.  However, if I do get the chance I'll provide any info I learn.
Title: Re: How to fix graphics lag on intel laptops
Post by: Caarrie on December 01, 2008, 02:34:00 am
Looks like with the release of Intrepid mesa is now 7.2 not 7.0 so maybe changing that in the rule might help http://packages.ubuntu.com/source/intrepid/mesa

From irc in #planeshift a few days ago: (I hope kayden does not mind)

Code: [Select]
Kayden: glxinfo | grep Mesa     ....I'm presuming you have Mesa 7.x
Kayden: edit data/config/gldrivers.xml
Kayden: near the bottom there should be a rule
Kayden:     <rule description="Intel DRI: Disable ARB_fragment_program">
Kayden: change the pattern from 6\.5\.. to 7\.0\..
Kayden:         <regexp string="glversion" pattern="Mesa 7\.0\.." />