Game locale in toc
Give us an option to get the game's language in the toc file and load files based on that selection. Could speed up loading time a lot.
|
You mean something like:
Code:
## Interface: 50300 Code:
## Interface: 50300 Second option would seriously be spamming the AddOns folder, even tough AddOns like Bigwigs already do this, and I don't see Blizzard implementing option 1 at all. Blizzard would rather implement interface/addon localization in XML (in a way that a table was inserted as the third argument to vararg ...) i think. |
Or you could put all locales into one file so the game loads just the one....
(and use GetLocale() to process the relevant section) Loading delays are caused in part by the game seeking to a file (sometimes not finding it and writing to FrameXML.log and so on) If you use one file to keep all your locales that's not an issue. |
Or (if you really really want separate files per locale) you can put in a return at the top of the file. So, even if it loads the file, it won't compile the code unless it's the correct locale.
Lua Code:
|
Quote:
|
Quote:
|
Quote:
enUS.lua enGB.lua and you could load it from the toc like: Code:
'gamelocale'.lua |
Quote:
|
It's kinda irrelevant now with SSD performances, however it's still kinda bugging me that 50% of your addon's memory usage are useless locale files thats for sure.
And yes the game loads those files into the memory too when you start the game, and i'm not sure they ever get collected to garbage or not. |
Quote:
|
I'm pretty sure it could be done tho, lets say in CurseClient/Minion you set the language you want to use your addons, then the client comments out every other language files from the toc or even don't even download those files, just like how the nolib strip works:
Toc Code:
It would not just speed up the download processes and save a fuckloads of traffic, but remove a lot of clutter and even slightly speed up the addon loading process. |
Quote:
There also source text and outer function bytecode itself - only Blizzard can tell if those are retained in memory after processing or not. |
Quote:
Lua Code:
It doesn't really matter if your code doesn't run, if you put a file in the toc, then it will get loaded into the memory at least once per login/reload. My guess is that memory eventually will get garbaged, but it's still unnecessary loading time. |
All times are GMT -6. The time now is 08:52 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI