Bug 4438 - Possible relation of RegisterSound with instantaneous hangs of Rendering
Status: RESOLVED INVALID
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Sound
Version: GIT MASTER
Hardware: PC All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2009-12-28 09:31 EST by tinkah
Modified: 2009-12-28 14:01:59 EST
1 user (show)

See Also:



Description tinkah 2009-12-28 09:31:59 EST
If that proves true I suppose the Severity could be critical.

On a mods that uses Radio messages extensively, Urban Terror, I noticed that each time a radio message is called RegisterSound is called while a map and weapon's sounds are only called on mod/map load.

Now, I do notice - occasionally - rendering hanging for instances if a radio message is called (and not when just a weapon is fired). The RegisterSound function does seem to need some extra work.

This notion is also unrelated to audio renderer used, I noticed it on two different.


The 'instantaneous hangs' are followed by a small gap on the lower line of the net meter which is what can be reproduced if one hits /screenshot a few times (showing such resources load can give those gaps).

Any ideas?

a) Can this RegisterSound process be "slimmed"? And how?

b) Should one Register all such radio sounds in the beginning? (and consequently be a game-side issue)
Comment 1 tinkah 2009-12-28 10:07:23 EST
or it may be indirectly related to S_Play_f load, if they're called that way.
Comment 2 tinkah 2009-12-28 10:15:39 EST
It may be unrelated to start sound functions but the effect to be reproduced when each registersound function for each sound system is used.
Comment 3 tinkah 2009-12-28 10:22:37 EST
oh, I notice the registersound function of OpenAL is way slimmer than the other two I was trying, SDL base audio and Ikalizer, a sound renderer used on Urban Terror. I wonder if it has better behavior.
Comment 4 tinkah 2009-12-28 10:32:47 EST
nope. behavior is reproduced on oal.
Comment 5 tinkah 2009-12-28 10:58:46 EST
I have to confirm this thing is happening on un-registered sounds. Ikalizer's verbose messaging on and radio messages (audio) off, and I only got a hang when sanctuary map registered a water1.wav sound that wasn't found in buffer.
Comment 6 tinkah 2009-12-28 12:12:11 EST
This is a deeply operating system or language behavior related: I made an exe with various radio messages being spammed with /play. It only hangs the rendering the 1st time it is played. If the Client is Quit and restarted there's no hang.
Comment 7 Tim Angus 2009-12-28 14:01:59 EST
(In reply to comment #0)
> b) Should one Register all such radio sounds in the beginning? (and
> consequently be a game-side issue)

Yes. It's generally a bad idea to load assets on demand.