Gentoo Archives: gentoo-amd64

From: Etienne Imguimbert <eimguimbert@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Bad performance on doom3 with alsa and oss
Date: Mon, 16 Jan 2006 18:21:26
Message-Id: 200601161923.26374.eimguimbert@gmail.com
In Reply to: Re: [gentoo-amd64] Bad performance on doom3 with alsa and oss by Eric Augustus
1 Le Dimanche 15 Janvier 2006 05:48, Eric Augustus a écrit :
2 > On Fri, Jan 13, 2006 at 09:34:32AM +0100, Etienne Imguimbert wrote:
3 > > Dear gentoo amd64 users
4 > >
5 > > I've installed doom3 via the emerge command, and I have several
6 > > problems of performance. I tried several configurations:
7 > >
8 > > - when I switch to alsa in doom3, I get very noisy sounds (I get
9 > > several messages of rejected packets by alsa in the shell)
10 >
11 > You could try changing to the alsa PCM setting, "seta s_alsa_pcm" to
12 > "surround51" or anything else besides "default" in your DoomConfig.cfg. I
13 > had issues with the default setting on my setup and switched. Now I get
14 > pretty decent sound.
15 >
16 > > - when I switch to oss, I get huge slowdowns in the game (I think
17 > > there is a problem with the OSS emulation by alsa)
18 > >
19 > > - when playing timedemo demo1 in the doom3 prompt, I get a good number
20 > > of fps (about 60), but this benchmark is played without sound, so I
21 > > deduce that I have problem with sounds.
22 >
23 > The demo is not supposed to have sound.
24 >
25 >
26 > --
27 > Eric Augustus
28 > shrike@×××××××××.com
29 > -----------------
30 > For the sake of argument I'll ignore all your fighting words.
31 > -- Larry Wall in <199710221710.KAA24242@××××.org>
32
33 Dear Eric,
34 I've modified the file DoomConfig.cfg as you indicate, and there is no sound
35 at all when I switch to alsa. The message I get is:
36
37 ------------- Warnings ---------------
38 during DOOM 3 initialization...
39 WARNING: idPort::SendPacket: bad address type NA_BAD - ignored
40 WARNING: sound subsystem disabled
41
42 2 warnings
43
44 When I specify seta s_alsa_pcm "default" in the config file, I get very noisy
45 sounds, and the messages in the shell are:
46 ....
47 idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
48 snd_pcm_writei failed: Resource temporarily unavailable
49 snd_pcm_writei short write: 940 out of 1024
50 snd_pcm_writei short write: 1880 out of 2048
51 snd_pcm_writei short write: 940 out of 1024
52 idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
53 snd_pcm_writei short write: 1880 out of 2048
54 snd_pcm_writei short write: 940 out of 1024
55 snd_pcm_writei short write: 940 out of 1024
56 snd_pcm_writei short write: 940 out of 1024
57 idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
58 snd_pcm_writei failed: Resource temporarily unavailable
59 snd_pcm_writei short write: 940 out of 1024
60 ....
61
62 I precise:
63 I've got arts running using alsa output, but I specify it to suspend if
64 inactive during 30 secondes. I tested sounds in doom3 with and without arts
65 launched: it changes nothing.
66
67 Also when running doom3, the cpu frequency is max (2.2 GHz), so I don't think
68 that my problem would come from bad configured cpuscaling...
69
70 I don't know what to do to have good perfs with good sounds. (Remember if I
71 switch to oss backend, perfs are low and sounds are just acceptable).
72
73 Best regards,
74
75 Etienne Imguimbert
76
77
78
79 --
80 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Bad performance on doom3 with alsa and oss Etienne Imguimbert <eimguimbert@×××××.com>