PlaneShift

Support => Linux Specific Issues => Topic started by: miLosh on November 21, 2005, 11:36:45 am

Title: CVS Version
Post by: miLosh on November 21, 2005, 11:36:45 am
good day,

i wanted to make the request to have a sticky post in this forum with the CVS version of ps, cs, cal3d and cel from which the actual binary version was build. reason being: while the binary version works well (technically) its performance is very poor. its no suprise, i believ no optimization switches where used to build it for it has to run on all different (cpu)platforms.

me as a gentoo user would like to use my system CFLAGS for the build (p4 and march optimized) but i find it extremlly difficult to find the correct versions to build. the gentoo build guide seems sometimes to recommend a different version  then it was used for the binary build (well, that was with version 3.009 IIRC, when platyna did the job).

i think it would not be a big task for the packager (xorax that is?) and would help a lot of people.
Title:
Post by: stfrn on November 21, 2005, 01:19:05 pm
Yes, source packages are being worked on by Xordan. As far as I last heard there are scripts that have been written to package to a certain date, they just need to be finished up and set up on the website.
Title:
Post by: Xordan on November 21, 2005, 05:34:19 pm
Quote
Originally posted by miLosh
while the binary version works well (technically) its performance is very poor. its no suprise, i believ no optimization switches where used to build it for it has to run on all different (cpu)platforms.


Actually, it\'s built with these FLAGS:

CFLAGS=\"-march=i686 -ffast-math -O3 -pipe (-fvisibility=hidden -fomit-frame-pointer)\"
CXXFLAGS=\"-march=i686 -ffast-math -O3 -pipe (-fvisibility-inlines-hidden -fvisibility=hidden -fomit-frame-pointer)\"

Stuff in () is dependant on platform as it breaks things sometimes. And the binaries are compiled statically, so there\'s a big speed increase on loading. You can check the configure scripts in cvs (CS/cel/PS) to see what optimizations are added.

I\'m pretty sure you can\'t get much more out of this, although you could adjust the march setting for an extra 1% performance maybe.

And yes, src packages will be released fairly soon, hopefully this week.
Title:
Post by: miLosh on November 22, 2005, 12:02:18 am
Quote
Originally posted by stfrn As far as I last heard there are scripts that have been written to package to a certain date, they just need to be finished up and set up on the website.

well here you go:
http://plexus.shacknet.nu/downz/buildcvs.sh (http://plexus.shacknet.nu/downz/buildcvs.sh)

i wrote it when ps version 03.11 came out, but due to incorrect dates i never was able to play with the binaries build with it on the official server (wrong client version or something). thats why i asked for the right CVS dates ;)
Title:
Post by: miLosh on November 22, 2005, 12:14:42 am
Quote
Originally posted by Xordan

Actually, it\'s built with these FLAGS:

CFLAGS=\"-march=i686 -ffast-math -O3 -pipe (-fvisibility=hidden -fomit-frame-pointer)\"

oh i didnt think you\'d use any march settings, hehe. i usually build with march=pentium4 but as you noted, it wont \"double\" the performance ;) though i also use a lower optimization as it is recommended for general gentoo builds (O2). rest is more or less the same.

well i dont know why, but usually if i succeded to build and run the client from CVS it is more stable and more \"fluid\" than the binary version. as for the actual 0.3.12 release, its one of the most unstable releases i ever had, it crashes all the time (though im not saying its your fault, maybe errors in the code i dont know...)

Quote

I\'m pretty sure you can\'t get much more out of this, although you could adjust the march setting for an extra 1% performance maybe.

i agree about the march settings. maybe its the compiler i use, the glibc, or whatever. it is as i wrote above, i had better experience with own build clients, though i honestly cant tell exactly why.
 
Quote

And yes, src packages will be released fairly soon, hopefully this week.

yeah that\'d be great - thanks ;)
Title:
Post by: Induane on November 22, 2005, 07:39:35 pm
Hmmm this still doesn\'t explain the poor performance of the new binary builds.  With Karosk\'s and Platyna\'s binaries the game functioned flawlessly and was extremely smooth and fast for me.  The recent one from Xordan gets me at about 12% of the performance.  I never get above 20 fps, thoughI used to hover around 45 normally. Also movement is jerky, with frequent lurches and freezes and the mouse looks strange.  Does this have anything to do with the binaries, or is it the latest planehift code?   I can\'t compile it myself as even though CS and CEL compile fine, Cal3d doesn\'t get past ./autogen.sh.
Title:
Post by: Wired_Crawler on November 22, 2005, 08:25:17 pm
Check, if You have the following lines in psclient.cfg, at the end of the file:

Video.OpenGL.MultisampleFavorQuality = true
Video.OpenGL.MultiSamples = 0
Video.OpenGL.TextureFilterAnisotropy = 1
Video.OpenGL.TextureDownsample = 0

They are added after each run of pssetup. I get much better performance (and better picture quality) after removing them. I\'m too lazy to check, which one of those lines causes problems.

Cal3d sources haven\'t changed for months, so it has to be something wrong with Your system environment...

Xordan\'s binaries work very well for me, (I mean performance and quality of visuals), so again - I think it is something in Your particular configuration.
Title:
Post by: Induane on November 23, 2005, 04:53:12 am
http://rafb.net/paste/results/lbh35o88.nln.html

that is my psclient.cfg currently - none of the lines you suggested I leave exist. (that paste expires after 24 hrs)

Also every other binary has worked fantastic for me except Xordans, and nothing has changed in my setup except for my kernel - but I left my old home brewed kernel in my boot options, so I booted my old kernel to be sure my system was identically configured as it was back when I ran Karosh\'s and Platyna\'s builds.   This had no effect.
Title:
Post by: Xordan on November 23, 2005, 08:27:12 pm
Well do you get better performance when you compile from cvs? If not then your performance decrease may be due to code changes, like the fps limit put on the client. If you do, then I\'ll take a look and see what the problem is.
Title:
Post by: Induane on November 24, 2005, 01:46:17 am
I\'d check but I can\'t compile Cal3d unfortunately.  There is some sort of weird libtool/automake issue - running autogen.sh fails, though I can compile everything else normally.
Title:
Post by: lanser on November 30, 2005, 09:00:16 am
Just want to say that I have not seen any difference between Xordans binary and a self compiled version I have run both side by side and AFAIKS there is no measurable difference on my system. Platyna\'s last version was quite buggy and slow for me.

Back to the original topic, yes please a sticky with the current stable timestamp for cel/Cal3d/CS/PS would save me having to logon to irc just to ask :)

*edit
Thanks to whoever added the dates to Laanx Server Stats page great Idea :D