Is there's anyone that could maybe elaborate for me how/why this new SOUNDKIT approach is better?
I don't quite see the logic in why Blizzard would change PlaySound() from accepting an input string (i.e a filepath) into taking a numbered id instead.
How much more costly (time, cpu, memory) is it to support an occasional lookup of a new string (I presume they implemented a cached table of most used paths for faster re-lookup) compared to pre-enumerating ALL sounds in the game into a LUA table and having to maintain such a table.
Edit: Seems I got PlaySound() and PlaySoundFile() mixed up. It all makes sense now.
Last edited by Jarod24 : 07-17-17 at 03:48 PM.
|