Bug #3794

Default sound buffer size is too small for mods

Added by Amenophis . 6 months ago. Updated 6 days ago.

Sound/Other Media
Target version:
Start date:
% Done:


Operating system:


I’ve been playing with Morrowind Acoustic Overhaul for some weeks when recently my game started with huge framerate script-related spikes. Found that the culprit is MAO_3d.esm.

OpenMW-CS doesn’t report any script issues.

Attached: save in a location with high lag, openmw.log, settings.cfg and a pic showing the problem.

Mod link:

Linux Mint 18.1 64-bit

Test MAO.jpg View - Pic showing the graphic analizer (1.2 MB) Amenophis ., 03/20/2017 02:53 AM

Test_MAO.omwsave.7z - Problematic place (3.17 MB) Amenophis ., 03/20/2017 02:54 AM

Test MAO openmw.log View - Log showing something about a lack of sound buffers (114 KB) Amenophis ., 03/20/2017 03:00 AM

settings.cfg - My settings (2.32 KB) Amenophis ., 03/20/2017 03:04 AM

Related issues

Duplicated by OpenMW - Bug #3853: Possible sound buffer problem? Rejected 05/02/2017


#1 Updated by Rick Dillon 5 months ago

I noticed this as well, and ended up removing MAO_3d.esm as a result. One location where I could reliably reproduce the issue was on the path across the water from Hawkmoth Legion Fort, just north of Ebonheart.

#2 Updated by Andrei Kortunov 5 months ago

A lot of "No unused sound buffers to free" indicates that your sound cache buffer size is not sufficient for MAO.

Can you retest with something like:

buffer cache min = 64
buffer cache max = 64

(or higher, if "No unused sound buffers to free" message is still persists) in your settings.cfg?

Also I managed to reproduce this bug in clean OpenMW - just set "buffer cache max = 1".
In this case the game is overwriting the buffer content constantly, what leads to heavy lags.

#3 Updated by Amenophis . 5 months ago

@Andrei Kortunov Thank you! That trick with Sound buffers fixed the lag problem. This new size should be the new default in OpenMW.

#4 Updated by Andrei Kortunov 5 months ago

This new size should be the new default in OpenMW.

I am not sure about it (64 MB cache size may be an overkill for vanilla game without sound mods).

Anyway, why are we chosed default minimum size 14 MB (not a power of two)? Why not 16 MB, for example?

#6 Updated by Andrei Kortunov 5 months ago

Read about that here

Thanks. It seems 14 MB is the empirical value for a clean game.
Maybe we should modify the warning message (to suggest to increase the cache size)?

#7 Updated by Alexei Dobrohotov 5 months ago

  • Duplicated by Bug #3853: Possible sound buffer problem? added

#8 Updated by Alexei Dobrohotov 12 days ago

  • Category set to Sound/Other Media

#9 Updated by Alexei Dobrohotov 9 days ago

  • Subject changed from Morrowind Acoustic Overhaul – modular plugin does great lag. to Default sound buffer size is too small for mods
  • Description updated (diff)
  • Status changed from New to Resolved
  • Assignee set to Chris Robinson
  • Target version set to openmw-0.43
  • % Done changed from 0 to 100
  • Operating system changed from Linux to Other

#10 Updated by Alexei Dobrohotov 6 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF