DissonanceLagFix

v1.0.0·Updated 2023-12-12

This plugin significantly reduces the duration of lag spikes simply by changing the log level of DissonanceVoip.

About this mod Author’s original text

Dissonance Lag Fix

This plugin significantly reduces the duration of lag spikes simply by changing the log level of DissonanceVoip.

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)

Join the Déjà Drift Discord Server

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack

File & checksum

Filename
DissonanceLagFix-1.0.0.zip
File size
23.6 KiB