From: Rudolf Polzer Date: Sat, 10 Apr 2021 01:17:14 +0000 (+0200) Subject: Bump snd_streaming_length from 2 to 40 seconds. X-Git-Tag: xonotic-v0.8.5~455 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ad516decfb08b99e02f0447890c68d400c4624a;p=xonotic%2Fxonotic-data.pk3dir.git Bump snd_streaming_length from 2 to 40 seconds. 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. --- diff --git a/xonotic-common.cfg b/xonotic-common.cfg index 88958889a..ff5787269 100644 --- a/xonotic-common.cfg +++ b/xonotic-common.cfg @@ -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