0.79.1 performance and sound: way worse than 0.78 ?

0.79.1 performance and sound: way worse than 0.78 ?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
User avatar
MrPresident
Posts: 28
Joined: 08 Aug 2007, 23:57

0.79.1 performance and sound: way worse than 0.78 ?

Post by MrPresident »

Hi

Now i have played some 0.79.1 games and all them finished the same way: my computer almost hang with CPU in red.

I older games (0.78) my computer could manage similar quantities of units like I have been experiencing on this games, and now it is near impossible to play. Is 0.79 worse in terms of performance?

Also, i find sound now is quite more impressive with the new pitch effects but in large battles, with 30 units or so, all the sounds seem to get broken. They seem to start and not to finish properly.

Anyone had similar experiences? Its a problem of my system or is a common one.

I'm running Spring 0.79.1 in Ubuntu 8.04 (from my own build packages, not in repositories yet).

Thanks in advance
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by thesleepless »

yep, i found this too, performance wise. sound is fine for me.
and .78 and .79 are both way slower than .77
YokoZar
Posts: 883
Joined: 15 Jul 2007, 22:02

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by YokoZar »

How are you building them? Maybe you're doing something wrong.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by thesleepless »

cmake . && make && sudo make install

nothing fancy.
User avatar
MrPresident
Posts: 28
Joined: 08 Aug 2007, 23:57

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by MrPresident »

thesleepless wrote:cmake . && make && sudo make install

nothing fancy.

I have to backport (installing 8.10 libboost libraries into 8.04) to build, so there is something fancy in the build.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by thesleepless »

hmm is there a specific version of boost that should be used for compiling spring?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by imbaczek »

1.35+
User avatar
MrPresident
Posts: 28
Joined: 08 Aug 2007, 23:57

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by MrPresident »

YokoZar wrote:How are you building them? Maybe you're doing something wrong.

I detailed the steps I followed in this other topic.

When i did that i had both libboost 1.34 (not dev) and 1.35 (both user and dev) libraries on my system, now i removed the 1.34 packages and i'm rebuilding.

Code: Select all

dpkg -l | grep libboost
ii  libboost-date-time1.35-dev                 1.35.0-5                                                   set of date-time libraries based on generic 
ii  libboost-date-time1.35.0                   1.35.0-5                                                   set of date-time libraries based on generic 
ii  libboost-filesystem1.35-dev                1.35.0-5                                                   filesystem operations (portable paths, itera
ii  libboost-filesystem1.35.0                  1.35.0-5                                                   filesystem operations (portable paths, itera
ii  libboost-graph1.35-dev                     1.35.0-5                                                   generic graph components and algorithms in C
ii  libboost-graph1.35.0                       1.35.0-5                                                   generic graph components and algorithms in C
ii  libboost-iostreams1.35-dev                 1.35.0-5                                                   Boost.Iostreams Library development files
ii  libboost-iostreams1.35.0                   1.35.0-5                                                   Boost.Iostreams Library
ii  libboost-program-options1.35-dev           1.35.0-5                                                   program options library for C++
ii  libboost-program-options1.35.0             1.35.0-5                                                   program options library for C++
ii  libboost-regex1.35-dev                     1.35.0-5                                                   regular expression library for C++
ii  libboost-regex1.35.0                       1.35.0-5                                                   regular expression library for C++
ii  libboost-serialization1.35-dev             1.35.0-5                                                   serialization library for C++
ii  libboost-serialization1.35.0               1.35.0-5                                                   serialization library for C++
ii  libboost-signals1.35-dev                   1.35.0-5                                                   managed signals and slots library for C++
ii  libboost-signals1.35.0                     1.35.0-5                                                   managed signals and slots library for C++
ii  libboost-system1.35-dev                    1.35.0-5                                                   Operating system (e.g. diagnostics support) 
ii  libboost-system1.35.0                      1.35.0-5                                                   Operating system (e.g. diagnostics support) 
ii  libboost-test1.35-dev                      1.35.0-5                                                   components for writing and executing test su
ii  libboost-test1.35.0                        1.35.0-5                                                   components for writing and executing test su
ii  libboost-thread1.35-dev                    1.35.0-5                                                   portable C++ multi-threading
ii  libboost-thread1.35.0                      1.35.0-5                                                   portable C++ multi-threading
ii  libboost-wave1.35-dev                      1.35.0-5                                                   C99/C++ preprocessor library
ii  libboost-wave1.35.0                        1.35.0-5                                                   C99/C++ preprocessor library
ii  libboost1.35-dev                           1.35.0-5                                                   Boost C++ Libraries development files
ii  libboost1.35-doc                           1.35.0-5                                                   Boost.org libraries documentation
Also, because the problem is related to sound, i had a look at OpenAL libraries versions:

Code: Select all

dpkg -l | grep -i openal
ii  libalut0                                   1.1.0-1                                                    OpenAL Utility Toolkit
ii  libopenal-dev                              1:0.0.8-7                                                  OpenAL is a portable library for 3D spatiali
ii  libopenal0a                                1:0.0.8-7                                                  OpenAL is a portable library for 3D spatiali
Acording to the Ubuntu install guide:
Spring needs at least OpenAL Soft with version 1.6
So maybe i have not the right versions, but Spring has been packaged for Ubuntu 8.04 for 1 year and I have the last OpenAL version. I'm confused.

On the other side, it could be a problem of MY system with this new version and the new sound API I read about in the changelog. I have an old SB Live! soundcard on my system and i never had any problems with it.

Any ideas?
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by manolo_ »

i had problems with sounds too:

some sounds dont work (i think should be fixed with modupdate) and when i zoom out, i hear nothing of the battles, when i zoom in i hear the sounds (but in this case you loose the overview --> not good to play)
User avatar
MrPresident
Posts: 28
Joined: 08 Aug 2007, 23:57

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by MrPresident »

I rebuilt the packages but nothing changed about the sound.

Is there any way to disable the new doppler and pitch effects ( /DisablePitchEffects or similar command?) ?

Please help!
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by lurker »

Have you tried the settings file?
User avatar
MrPresident
Posts: 28
Joined: 08 Aug 2007, 23:57

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by MrPresident »

lurker wrote:Have you tried the settings file?
Do you mean the .springrc file located at my homedir?

Yes, I found the var "PitchAdjust=1" into it, but according to the changelog:
allow soundpitch to be adjusted according to game speed (default off, turn on with PitchAdjust=1)
I dont think changing it to 0 will solve anything, but i'll try next time.

Edit:

I searched for "doppler" into the changelog and i found this:
sound: added dopplerscale -var to sounds.lua definition (1.0 is default, 0 is no doppler, >1.0 exagerates the effect)
This returns me another strange thing I found: the "sounds.lua" file exists into the spring source code, but it does not into my own build of the package so i cannt change it.

Do any of you who use a .deb package of spring (downloaded from the repositories) have a "sounds.lua" file somewhere in your system?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: 0.79.1 performance and sound: way worse than 0.78 ?

Post by Auswaschbar »

Its in spingcontent.sdz, changing it will desync you (ignoring the fact that some mods overwrite this file anyway). Except from on the mod side, there is no way of disabling doppler effect.

You should just update your openal to a non-broken version. (See https://bugs.launchpad.net/ubuntu/+sour ... bug/194919).

Apart from that, I also have a SB Live!, and do not have any problems with sound.
Post Reply

Return to “Linux”