Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hardware Accelerated OpenAL. (Read: Faster UT2004!)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Thu Jul 01, 2004 6:25 pm    Post subject: Hardware Accelerated OpenAL. (Read: Faster UT2004!) Reply with quote

A new (hardware accelerated!) implementation of OpenAL has been done by Chris Purnell. It's for people with ALSA and EMU10K1's (Sound Blaster Live, Audigy) only. It works with UT2004, and is faster for me.

I have created a ebuild for those who want to give it a whirl.

It should go in a media-libs/openal-alsa-emu10k1 sub-directory of your overlay.

You can try it out by deleting the openal.so in the System directory of UT2004 and replacing it with a symlink to the new one. If it doesn't work, there probably isn't much you can do about it, it's very new.

To get it doing surround sound read the info it spits out when it's done emerging.
_________________
Think about your breathing.
http://floam.sh.nu


Last edited by floam on Sun Feb 20, 2005 9:15 pm; edited 7 times in total
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Thu Jul 01, 2004 8:00 pm    Post subject: Reply with quote

I tried this out and here were my results with the demo.

2.2Ghz Athlon XP, Geforce FX5900XT, sblive (duh)

Code:
emu10k1 openal
21.345633 / 73.328682 / 220.491333 fps
Score = 68.267593

Custom compiled openal
15.042336 / 72.743378 / 238.676987 fps
Score = 67.849571

Original openal that comes with demo
17.924835 / 65.891823 / 189.305099 fps
Score = 63.538990

Nosound
22.212626 / 80.233856 / 252.355408 fps
Score = 72.003845


I noticed the minimum framerate increased quite a bit with the emu10k opanal over the custom compiled one even though the average frame rate didn't improve all that much, minimum is of course fairly important.

I only tested it for a few minutes but the emu10k openal seemed to sound fine in gameplay.
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Thu Jul 01, 2004 10:39 pm    Post subject: Reply with quote

thanks for sharing.

my 'score' with my system compiled openal:

Code:
15.414889 / 58.107639 / 137.291702 fps         rand[23377763]
Score = 57.162453


my 'score' using the ebuild you shared in here:

Code:
16.720104 / 76.201180 / 172.587662 fps         rand[23377763]
Score = 69.133171


Last edited by neenee on Thu Jul 01, 2004 10:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Thu Jul 01, 2004 10:39 pm    Post subject: Reply with quote

A new version came out, this one with better documentation and some more speaker examples. Updated ebuild.
_________________
Think about your breathing.
http://floam.sh.nu


Last edited by floam on Sun Nov 14, 2004 10:43 pm; edited 5 times in total
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Thu Jul 01, 2004 11:23 pm    Post subject: Reply with quote

no sound at all.
the audigy player is my sfx-card
i have changed channels=20 in the ut2004.ini file to term the
SNDRV_PCM_IOCTL_HW_PARAMS error.
but nothing works.
all channels are muted.
:cry:
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Jul 02, 2004 6:47 am    Post subject: Reply with quote

kriz: Try emailing the author. Be informative though, he doesn't have enough to time answer "uh sound don't work its broke" emails.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Fri Jul 02, 2004 12:32 pm    Post subject: Reply with quote

this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:

center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory
Back to top
View user's profile Send private message
ardnut
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 94

PostPosted: Fri Jul 02, 2004 7:20 pm    Post subject: Reply with quote

sound is very quite and i only get sound out of the front 2 speakers.

ive copied the file into my home dir as:

~/.openal-speakers/speakers-fivepoint-c

is this correct?
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Fri Jul 02, 2004 8:14 pm    Post subject: Reply with quote

I think .openal-speakers is supposed to be the file containing the speaker info not the directory although the README is rather ambiguous, if that still doesn't work I'd try uncompressing it also since they're gzips.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Jul 02, 2004 10:29 pm    Post subject: Reply with quote

neenee wrote:
this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:

center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory
Read the README that gets installed, it has a remedy.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Jul 02, 2004 10:30 pm    Post subject: Reply with quote

ardnut wrote:
sound is very quite and i only get sound out of the front 2 speakers.

ive copied the file into my home dir as:

~/.openal-speakers/speakers-fivepoint-c

is this correct?
No, it needs to be called ~/.openal-speakers, not in the directory.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Sun Jul 04, 2004 3:30 pm    Post subject: Reply with quote

floam wrote:
neenee wrote:
this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:

center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory
Read the README that gets installed, it has a remedy.


:oops:
Back to top
View user's profile Send private message
PovMan
Guru
Guru


Joined: 30 Sep 2002
Posts: 375
Location: Australia

PostPosted: Fri Jul 09, 2004 4:19 am    Post subject: Reply with quote

mate... you forgot to install the quadrophonic preset.... am i the only person in the world with only 4 speakers?

EDIT: !!!!!!!!!!!!!! dude thankyou so much for this. /me hugs floam ut2004 actually has surround sound finally, and it runs at a decent speed with sound.
i'm so happy /cries
_________________
I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Jul 09, 2004 8:17 pm    Post subject: Reply with quote

Okay, made a new revision which installs the quadrophonic speakers file, sorry about that, PovMan. (By the way, your nick sounds familiar, it didn't used to be PovRayMan, did it? Did you ever use an application called LiteStep on Windows 3 or 4 years ago? If you didn't, just mark me as insane and walk away.)
_________________
Think about your breathing.
http://floam.sh.nu


Last edited by floam on Sun Nov 14, 2004 10:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Fri Jul 09, 2004 9:04 pm    Post subject: Reply with quote

if you are PovRayMan i think i remember you as well :wink:
Back to top
View user's profile Send private message
PovMan
Guru
Guru


Joined: 30 Sep 2002
Posts: 375
Location: Australia

PostPosted: Sat Jul 10, 2004 7:15 am    Post subject: Reply with quote

You are both insane :) The Pov in Povman stands for 'Poverty' not 'POVRAY', and i haven't used windows for more than the occasional game in about 6 years. It's good to have something in common with someone who's... famous.
/me walks away
_________________
I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one.
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Sat Jul 10, 2004 10:14 am    Post subject: Reply with quote

lol. oh well - you could have been him :wink:
Back to top
View user's profile Send private message
ZothOmmog
Apprentice
Apprentice


Joined: 05 May 2003
Posts: 216
Location: Nashville, TN

PostPosted: Mon Jul 12, 2004 6:04 pm    Post subject: Reply with quote

I've had very poor luck with this. It tends to crash festival, make voice chat in UT2k4 loop to the point of uselessness, and ocassionally it will hard lock my system entirely while running UT2k4.
_________________
-It's gonna take a lot of fireworks to clean this place up.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Wed Jul 14, 2004 2:36 am    Post subject: Reply with quote

Festival doesn't use OpenAL, how does it "crash" Festival?
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
PovMan
Guru
Guru


Joined: 30 Sep 2002
Posts: 375
Location: Australia

PostPosted: Wed Jul 14, 2004 4:27 am    Post subject: Reply with quote

mmm dum di dum

Code:
41c41
<         speakers-sevenpoint-c speakers-quadrophonic README.speakers
---
>         speakers-sevenpoint-c speakers-quadraphonic README.speakers

_________________
I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Wed Jul 14, 2004 9:06 pm    Post subject: Reply with quote

Oops. Fixed and reuploaded.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
grover
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2002
Posts: 77
Location: Melbourne, Australia

PostPosted: Fri Jul 16, 2004 5:23 am    Post subject: Reply with quote

Anybody tried this with Americas Army? I get lots of blips and the pitch of the sound changes as you move around. I've gone back to the original openal for now because the sound quality is just too poor. This is with a SBLive and stereo sound.
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Sat Jul 17, 2004 11:43 pm    Post subject: Reply with quote

ok, brought it to work
but the speakers-fivepoint file i have to edit to bring up the center speaker for my audigy.

0: 1 -0.5 0 0.8860254
1: 1 0.5 0 0.8860254
2: 1 -0.93969262 0 -0.34202014
3: 1 0.93969262 0 -0.34202014
4: 0 0 0 0 <----- this dont work for me
5: 0 0 0 0
6: 0 0 0 0
7: 1 0 0 1 <----- with this setting i get an output from my center
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sun Jul 18, 2004 12:11 am    Post subject: Reply with quote

I notice that the Microphone feature doesn't work, a la Windows' EAX driver. The UT2004 code for the VoIP is still shoddy if it's hardware-driven, so using this driver will most likely break the Microphone.
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jul 18, 2004 4:15 am    Post subject: Reply with quote

It doesn't "break the microphone", it simply doesn't implement the capture extension.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum