Author Topic: Optimizing PS performance with OpenAL.  (Read 285 times)

Gilrond

  • Hydlaa Notable
  • *
  • Posts: 764
    • View Profile
Optimizing PS performance with OpenAL.
« on: November 28, 2013, 02:32:40 am »
I found an option in OpenAL which seems to noticeably improve performance of PlaneShift. It sets OpenAL to use memory mapping and according to the documentation it should reduce latency and CPU load.

Code: [Select]
## mmap:
#  Sets whether to try using mmap mode (helps reduce latencies and CPU
#  consumption). If mmap isn't available, it will automatically fall back to
#  non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
#  and anything else will force mmap off.
#mmap = true

So, to enable this, edit your $HOME/.alsoftrc and set mmap to true there.

Code: [Select]
mmap = true
I also noticed that default config in /etc/openal/alsoft.conf in my Debian sets alsa as a primary driver, while I'm now using PulseAudio, so this also can be modified, by setting the drivers order in $HOME/.alsoftrc accordingly (or you can simply set it to pulse only):

Code: [Select]
drivers = pulse, alsa
« Last Edit: November 28, 2013, 02:35:44 am by Gilrond »