|
|
Linux Technical issues under Linux platform |
|
Thread Tools | Display Modes |
10-27-2009, 07:03 AM | #1 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
PulseAudio performance test (Karmic?)
I ran some tests tonight and stumbled on some interesting results...
First, I noticed my FPS has really suffered lately. So i started looking into it. And I found that turning RO's internal volume control all the way down make a HUGE difference. Not just 10-20fps. But LARGE jumps in FPS. So I starting thinking ... hrmm.. I wonder if PulseAudio is bottle-necking RO..? Testing was simple enough: Launch RO and turn in a circle until FPS stabilize and take a screen. Repeat bypassing PulseAudio (of sorts) Test1 (Normal Launch): Code:
onemyndseye@onemyndsmobile:~/regnum$ ./rolauncher Test2 (Launch with OSS): Code:
onemyndseye@onemyndsmobile:~/regnum$ aoss ./rolauncher WOW! O.O These results are in no way conclusive or even 100% consistent (so far I would say 80% consistent) and I will continue to test, but the results were so surprising I wanted to share and get a discussion started on this topic.
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel Last edited by onemyndseye; 10-27-2009 at 03:50 PM. |
10-27-2009, 03:58 PM | #2 |
Count
Join Date: Mar 2007
Location: Germany
Posts: 1,164
|
Interesting.
I'm not sure but isn't openal a very old implementation? I'm using a fresh karmic install with pulseaudio of course. When I want to start it with aoss it just segfaults when selecting "enter gameworld". I'll try to make it work with aoss as well :/
__________________
French Warriors of Syrtis: Nessa Telrunya (Hunter) - Myxir (Warlock) - Estra (Conjurer)
In War it does not matter who is right, but who is left. |
10-27-2009, 05:25 PM | #3 |
Marquis
Join Date: Jul 2007
Location: The Netherlands
Posts: 2,076
|
I use a fresh install of ubuntu 9.10 and when playing games the sound will crash after a while, which will also cause the game to freeze when trying to exit it. This only happens with games, all other sound on my system keeps working. It looks like this is PulseAudio-related.
__________________
Dky Sven, level 54 knight (Ra) Valhalla Dky the Goat, level 35 conjurer(Ra) Dky Sven, level 51 knight(Horus) Something |
10-27-2009, 05:30 PM | #4 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
yes - tried this on a different machine and got the segfault you mentioned..
OpenAL has been replaced by OpenAL Soft which is a much better implentation and is very well maintained unlike the older "OpenAL" aoss tells RO to use the alsa-oss layer instead of pulse in either case still routes through OpenAL-Soft best of my understanding.
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel |
10-27-2009, 06:14 PM | #5 |
Count
Join Date: Mar 2007
Location: Germany
Posts: 1,164
|
Yes, I know how aoss works. But I did not know about OpenAL soft. Thanks about that.
__________________
French Warriors of Syrtis: Nessa Telrunya (Hunter) - Myxir (Warlock) - Estra (Conjurer)
In War it does not matter who is right, but who is left. |
10-27-2009, 06:17 PM | #6 |
Legend
Join Date: Mar 2006
Location: Oslo
Posts: 2,176
|
I've been noticing some nasty problems in with openal+pulseaudio in Karmic. (game freezes, and i can hear the music badly distorted). Anyone else having similar issues?
__________________
Surak Remember... this is just a game! - Xephandor existe y Miriya es su profeta! |
10-27-2009, 06:18 PM | #7 |
Marquis
Join Date: Jul 2007
Location: The Netherlands
Posts: 2,076
|
Ah, I was trying to report that. Yes, I have those issues too.
__________________
Dky Sven, level 54 knight (Ra) Valhalla Dky the Goat, level 35 conjurer(Ra) Dky Sven, level 51 knight(Horus) Something |
10-27-2009, 06:41 PM | #8 | |
Master
Join Date: May 2007
Location: Friesland, the Netherlands
Posts: 298
|
Quote:
EDIT: By the way, is libopenal1 still needed? Or do you include a library with the game?
__________________
|
|
10-27-2009, 09:18 PM | #9 | |
Count
Join Date: Mar 2007
Location: Germany
Posts: 1,164
|
Quote:
Do you just get game freeze or is it the whole system?
__________________
French Warriors of Syrtis: Nessa Telrunya (Hunter) - Myxir (Warlock) - Estra (Conjurer)
In War it does not matter who is right, but who is left. |
|
10-28-2009, 06:00 AM | #10 |
Master
Join Date: Jul 2008
Location: South Central USA
Posts: 260
|
After some testing the following settings put into ~/.alsoftrc works very well even though I am using surround sound mixing.
Code:
# Option and block names are case-insenstive. The supplied values are only # hints and may not be honored (though generally it'll try to get as close as # possible). These are the current available settings: ## format: # Sets the output format. Can be one of: # AL_FORMAT_MONO8 (8-bit mono) # AL_FORMAT_STEREO8 (8-bit stereo) # AL_FORMAT_QUAD8 (8-bit 4-channel) # AL_FORMAT_51CHN8 (8-bit 5.1 output) # AL_FORMAT_61CHN8 (8-bit 6.1 output) # AL_FORMAT_71CHN8 (8-bit 7.1 output) # AL_FORMAT_MONO16 (16-bit mono) # AL_FORMAT_STEREO16 (16-bit stereo) # AL_FORMAT_QUAD16 (16-bit 4-channel) # AL_FORMAT_51CHN16 (16-bit 5.1 output) # AL_FORMAT_61CHN16 (16-bit 6.1 output) # AL_FORMAT_71CHN16 (16-bit 7.1 output) #format = AL_FORMAT_QUAD16 format = AL_FORMAT_51CHN16 ## refresh: # Sets the buffer size, in frames. Note that the actual granularity may or may # not be less than this. refresh = 6144 ## sources: # Sets the maximum number of allocatable sources. Lower values may help for # systems with apps that try to play more sounds than the CPU can handle. #sources = 256 ## stereodup: # Sets whether to duplicate stereo sounds on the rear and side speakers for 4+ # channel output. This can make stereo sources substantially louder than mono # or even 4+ channel sources, but provides a "fuller" playback quality. True, # yes, on, and non-0 values will duplicate stereo sources. 0 and anything else # will cause stereo sounds to only play out the front speakers. stereodup = True ## drivers: # Sets the backend driver list order, comma-seperated. Unknown backends and # duplicated names are ignored, and unlisted backends won't be considered for # use. An empty list means the default. #drivers = alsa,oss,solaris,dsound,winmm,port,pulse,wave #drivers = alsa,oss,pulse ### These good for linux drivers = alsa ## ## ALSA backend stuff ## [alsa] ## device: # Sets the device name for the default playback device. device = surround51 # Comment this to use default alsa device ## periods: # Sets the number of update buffers for playback. A value of 0 means auto- # select. #periods = 0 ## mmap: # Sets whether to try using mmap mode (helps reduce latencies and CPU # consumption). If mmap isn't available, it will automatically fall back to # non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0 # and anything else will force mmap off. mmap = true
__________________
RA/Syrtis Hunter LVL50: Elusis RA/Syrtis Barba LVL50: Artemisia RA/Syrtis Conju Lvl45: Nellas Miriel |
|
|