Author Topic: Testing a possible optimization: all sounds converted to .wav format.  (Read 2828 times)

0 Members and 1 Guest are viewing this topic.

Vornne

  • Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Vornne
  • M&BWBNWVC
As some of you might know, xenoargh found that converting sounds from .ogg to .wav format increased the performance of his mod, which is probably because the uncompressed format uses less CPU power to play. I wondered if it would affect PW performance, since there are often many sounds playing at once on a large and populated PW scene, particularly the horse footstep and weapon drawing ones: I converted all the relevant sounds for myself to test, but since I don't play on remote servers very often I wasn't really sure if it increased performance or reduced "lock ups" by much, so I have uploaded some patches for regular players to test.

There are two versions, the first at the same sample rate as the original .ogg at 48kHz, and the second at 22kHz as recommended by xenoargh in his thread; the low quality versions are noticeably quieter and more muffled, missing some of the high frequencies and dynamic range, but it seems possible that they might use less memory or make the game perform slightly faster. If people want to try both versions, comparing against the native .ogg and each other, I would be interested in your reports. Just extract into the PW_4_alpha6 directory like applying a patch.

Full quality patch
Low quality patch - outdated
« Last Edit: September 27, 2011, 01:10:04 AM by Vornne »

splofot

  • Squire
  • *
    • View Profile
  • Faction: Swadian
Less CPU power used = better game experience on distant servers.
Right?
Homme saab moosi, eile sai moosi, aga mitte kunagi ei anta täna moosi.

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
No, Network speeds determine ping&lag which is the problem for distant servers, not your own CPU power.
 

Osvaldon

  • On probation
  • *
    • Steam - Osvaldonlt
    • View Profile
  • Faction: Rhodok
  • MP nick: Osvaldon
  • WBWF&SNWM&BVC
Thanks for the patch

All of the mods in my Warband (including native) are completely fvcked, most of my textures and sounds are replaced with crazy ****. For instance when I see a stone castle, I see a castle covered in dicks, and when I hear a horse trotting I hear beavis and butthead laughing. Really needed this, cheers

 :lol: You should reinstall Warband, well unless you like it that way.

Wing!!

  • Regular
  • *
    • View Profile
  • Faction: Neutral
does this mean il be able to play the game with sound? all the other mods i play have sound but not this one for me or is it just me?

splofot

  • Squire
  • *
    • View Profile
  • Faction: Swadian
No, Network speeds determine ping&lag which is the problem for distant servers, not your own CPU power.
Yeah that's what I meant you have a better gaming experience on distant servers if you're not lagging like f*ck.
Homme saab moosi, eile sai moosi, aga mitte kunagi ei anta täna moosi.

Suspicious Pilgrim

  • Grandmaster Knight
  • *
  • First, do no harm.
    • View Profile
    • merry
  • Faction: Neutral
  • MP nick: Suspicious Pilgrim
Thanks for the patch

All of the mods in my Warband (including native) are completely fvcked, most of my textures and sounds are replaced with crazy ****. For instance when I see a stone castle, I see a castle covered in dicks, and when I hear a horse trotting I hear beavis and butthead laughing. Really needed this, cheers


Dicks? Are you serious?
Taleworlds will never leave you.
:,)

Splintert

  • Count
  • *
    • Steam - splintert
    • View Profile
  • Faction: Neutral
  • MP nick: Splintert
  • M&BWB
Will be tested.

edit: Holy crap it works amazingly.
« Last Edit: July 28, 2011, 08:54:41 PM by Splintert »
Im stretching the limits of yo mommas ass fuckboy get back at me when you think of  something good like that you ol * beat me up in school so now i pick on a 11 year old on the internet to feel hard ass *

Ser Benjamin

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: Ser_Benjamin----Bronn
  • M&BWBWF&S
Thanks for the patch

All of the mods in my Warband (including native) are completely fvcked, most of my textures and sounds are replaced with crazy ****. For instance when I see a stone castle, I see a castle covered in dicks, and when I hear a horse trotting I hear beavis and butthead laughing. Really needed this, cheers

Screenshot or it didn't happen.

I'l be testing the patch.

Kovas

  • Master Knight
  • *
  • Green Chaos
    • View Profile
  • Faction: Vaegir
  • MP nick: GreenWolf
  • M&BWBWF&S
I tried the patch. Wonderful, really wonderful done. The game before was a bit laggy, but now is sweety wonderful. You are a wonderful people, thank you so much!

Vornne

  • Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Vornne
  • M&BWBNWVC
Re: Testing a possible optimization: all sounds converted to .wav format.
« Reply #10 on: July 29, 2011, 03:13:39 AM »
That sounds great :P. Any opinions on whether the low quality sounds make a difference in performance compared with the full quality ones?

Kovas

  • Master Knight
  • *
  • Green Chaos
    • View Profile
  • Faction: Vaegir
  • MP nick: GreenWolf
  • M&BWBWF&S
Re: Testing a possible optimization: all sounds converted to .wav format.
« Reply #11 on: July 29, 2011, 03:21:45 AM »
Just wonderful.

Splintert

  • Count
  • *
    • Steam - splintert
    • View Profile
  • Faction: Neutral
  • MP nick: Splintert
  • M&BWB
Re: Testing a possible optimization: all sounds converted to .wav format.
« Reply #12 on: July 29, 2011, 04:07:49 AM »
That sounds great :P. Any opinions on whether the low quality sounds make a difference in performance compared with the full quality ones?

I can set my FPS limiter off and see exactly how much it helped.

Could you maybe give a tutorial of sorts as to how to do this to other mods? (namely native). I've got the sound conversion software, converted, changed the .txt information but still no sound.
Im stretching the limits of yo mommas ass fuckboy get back at me when you think of  something good like that you ol * beat me up in school so now i pick on a 11 year old on the internet to feel hard ass *

Vornne

  • Moderator
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Vornne
  • M&BWBNWVC
Re: Testing a possible optimization: all sounds converted to .wav format.
« Reply #13 on: July 29, 2011, 04:28:54 AM »
Could you maybe give a tutorial of sorts as to how to do this to other mods? (namely native). I've got the sound conversion software, converted, changed the .txt information but still no sound.
You should be able to extract the patch into your Native module, since PW only adds sounds to the end of the list, keeping the same native sounds at the start (though you need to set "scan_module_sounds = 1" in module.ini. To do it yourself, there's really nothing to it: just convert all files in Warband/Sounds/ and put them in Modules/Whatever/Sounds/, do a search and replace of .ogg to .wav in sounds.txt, and edit Modules/Whatever/module.ini as said. The patch doesn't convert everything to save download size, only the sounds likely to be heard often in a battle scene.

Wing!!

  • Regular
  • *
    • View Profile
  • Faction: Neutral
Re: Testing a possible optimization: all sounds converted to .wav format.
« Reply #14 on: July 29, 2011, 06:35:53 PM »
Hey maybe you guys can help me with my sound.iv had no sound for this mod for awhile now since Vos i think on the rcc server i thought if i added this patch it might of fixed it for me but its still the same i only have this problem on this mod my sound works fine on all the others any ideas?