]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bump snd_streaming_length from 2 to 40 seconds.
authorRudolf Polzer <divVerent@gmail.com>
Sat, 10 Apr 2021 01:17:14 +0000 (03:17 +0200)
committerRudolf Polzer <divVerent@gmail.com>
Sat, 10 Apr 2021 01:21:24 +0000 (03:21 +0200)
Should increase RAM usage and map load time a bit, but reduce sound decoding
CPU usage (Vorbis decoding) substantially. Expecting this to be a net positive
tradeoff, and should fix issues like #2500 in a much safer way, with no quality
lposs whatsoever.

xonotic-common.cfg

index 88958889af0a9b52f1624b59eb14359db12f69f7..ff5787269e4be9a7093a312bf18ce849e550a1be 100644 (file)
@@ -128,7 +128,9 @@ locksession 1
 set snd_soundradius 1200
 set snd_softclip 1
 set snd_maxchannelvolume 0
-set snd_streaming_length 2
+// Only streaming-decode music, not any sound effects. RAM is cheap nowadays.
+// Sadly, our longest sound effect is 36 seconds.
+set snd_streaming_length 40
 seta menu_snd_sliderscale 2 "0: decibels; 1: linear percent; 2: 0..10 scale; 3: slider size percent"
 seta menu_snd_attenuation_method 1 "Use exponential instead of linear falloff for sound attenuation"
 alias snd_attenuation_method_0 "set menu_snd_attenuation_method 0; set snd_soundradius 1200; set snd_attenuation_exponent 1; set snd_attenuation_decibel 0" // Quake default