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: Fri, 20 Jan 2006 09:52:51
Message-Id: 756628910601200149s5206eb13l@mail.gmail.com
In Reply to: Re: [gentoo-amd64] Bad performance on doom3 with alsa and oss by David Guerizec
1 I have looked in /lib/modules/kernelXXX, I did not found any snd-ioctl32
2 module...
3 I have juste enabled tue sound support in the kernel (and no oss or alsa),
4 and just emerged alsa-driver, alsa-lib. Where can I find this module?
5
6 Regards,
7 Etienne
8
9
10 2006/1/20, David Guerizec <david@××××××××.net>:
11 >
12 > Le Vendredi 20 Janvier 2006 09:36, Etienne Imguimbert a écrit:
13 > > Dear all
14 > >
15 > > Here is the alsa section of the FAQ about Linux version of doom3:
16 > >
17 > http://zerowing.idsoftware.com/linux/doom/#head-8c36163f1dfc3a253ef72c0f821
18 > >b0b0dd2fc17b1
19 > >
20 > > This FAQ says about amd64 system:
21 > > "on amd64 systems you may need to get the snd-ioctl32 module loaded in "
22 > >
23 > > What does it mean? I don't understand the meaning of this sentence
24 > (excuse
25 > > me but english is not my mother tongue). What is the snd-ioctl32 module
26 > ?
27 >
28 > modprobe snd-ioctl32
29 >
30 > CQFD!
31 >
32 > David
33 >
34 > > Thanks in advance,
35 > > Best regards,
36 > >
37 > > Etienne
38 > >
39 > > 2006/1/16, Etienne Imguimbert <eimguimbert@×××××.com>:
40 > > > Le Dimanche 15 Janvier 2006 05:48, Eric Augustus a écrit:
41 > > > > On Fri, Jan 13, 2006 at 09:34:32AM +0100, Etienne Imguimbert wrote:
42 > > > > > Dear gentoo amd64 users
43 > > > > >
44 > > > > > I've installed doom3 via the emerge command, and I have several
45 > > > > > problems of performance. I tried several configurations:
46 > > > > >
47 > > > > > - when I switch to alsa in doom3, I get very noisy sounds (I
48 > get
49 > > > > > several messages of rejected packets by alsa in the shell)
50 > > > >
51 > > > > You could try changing to the alsa PCM setting, "seta s_alsa_pcm" to
52 > > > > "surround51" or anything else besides "default" in your
53 > DoomConfig.cfg.
54 > > >
55 > > > I
56 > > >
57 > > > > had issues with the default setting on my setup and switched. Now I
58 > get
59 > > > > pretty decent sound.
60 > > > >
61 > > > > > - when I switch to oss, I get huge slowdowns in the game (I
62 > think
63 > > > > > there is a problem with the OSS emulation by alsa)
64 > > > > >
65 > > > > > - when playing timedemo demo1 in the doom3 prompt, I get a good
66 > > >
67 > > > number
68 > > >
69 > > > > > of fps (about 60), but this benchmark is played without sound,
70 > so
71 > > > > > I deduce that I have problem with sounds.
72 > > > >
73 > > > > The demo is not supposed to have sound.
74 > > > >
75 > > > >
76 > > > > --
77 > > > > Eric Augustus
78 > > > > shrike@×××××××××.com
79 > > > > -----------------
80 > > > > For the sake of argument I'll ignore all your fighting words.
81 > > > > -- Larry Wall in <199710221710.KAA24242@××××.org>
82 > > >
83 > > > Dear Eric,
84 > > > I've modified the file DoomConfig.cfg as you indicate, and there is no
85 > > > sound
86 > > > at all when I switch to alsa. The message I get is:
87 > > >
88 > > > ------------- Warnings ---------------
89 > > > during DOOM 3 initialization...
90 > > > WARNING: idPort::SendPacket: bad address type NA_BAD - ignored
91 > > > WARNING: sound subsystem disabled
92 > > >
93 > > > 2 warnings
94 > > >
95 > > > When I specify seta s_alsa_pcm "default" in the config file, I get
96 > very
97 > > > noisy
98 > > > sounds, and the messages in the shell are:
99 > > > ....
100 > > > idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
101 > > > snd_pcm_writei failed: Resource temporarily unavailable
102 > > > snd_pcm_writei short write: 940 out of 1024
103 > > > snd_pcm_writei short write: 1880 out of 2048
104 > > > snd_pcm_writei short write: 940 out of 1024
105 > > > idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
106 > > > snd_pcm_writei short write: 1880 out of 2048
107 > > > snd_pcm_writei short write: 940 out of 1024
108 > > > snd_pcm_writei short write: 940 out of 1024
109 > > > snd_pcm_writei short write: 940 out of 1024
110 > > > idAudioHardwareALSA::Write: 4096 frames overflowed and dropped
111 > > > snd_pcm_writei failed: Resource temporarily unavailable
112 > > > snd_pcm_writei short write: 940 out of 1024
113 > > > ....
114 > > >
115 > > > I precise:
116 > > > I've got arts running using alsa output, but I specify it to suspend
117 > if
118 > > > inactive during 30 secondes. I tested sounds in doom3 with and without
119 > > > arts
120 > > > launched: it changes nothing.
121 > > >
122 > > > Also when running doom3, the cpu frequency is max (2.2 GHz), so I
123 > don't
124 > > > think
125 > > > that my problem would come from bad configured cpuscaling...
126 > > >
127 > > > I don't know what to do to have good perfs with good sounds. (Remember
128 > if
129 > > > I
130 > > > switch to oss backend, perfs are low and sounds are just acceptable).
131 > > >
132 > > > Best regards,
133 > > >
134 > > > Etienne Imguimbert
135 > > >
136 > > >
137 > > >
138 > > > --
139 > > > gentoo-amd64@g.o mailing list
140 >
141 > --
142 > gentoo-amd64@g.o mailing list
143 >
144 >

Replies

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