DissonanceLagFix
This plugin significantly reduces the duration of lag spikes simply by changing the log level of DissonanceVoip.
Last updated | 11 months ago |
Total downloads | 687427 |
Total rating | 38 |
Categories | Misc Client-side |
Dependency string | linkoid-DissonanceLagFix-1.0.0 |
Dependants | 1365 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Dissonance Lag Fix
This plugin significantly reduces the duration of lag spikes simply by changing the log level of DissonanceVoip. https://github.com/linkoid/Linkoid.Dissonance.LagFix
I profiled the game and found that whenever a lag spike occurs, Dissonance starts spamming warnings-- an I/O operation-- which ended up extending the duration of the lag spike. After lots of experimentation, I found that I was able to cut the duration of the lag spikes in half by changing Dissonance's log level to only log errors.
Here are some examples of the warnings that would spam during a lag spike:
[Dissonance:Recording] BasePreprocessingPipeline: Lost X samples in the preprocessor (buffer full), injecting silence to compensate
[Dissonance:Recording] BasePreprocessingPipeline: Preprocessor running slow! Iteration took:Xms for X frames"
[Dissonance:Playback] EncodedAudioBuffer: Encoded audio heap is getting very large (X items)