Optimization of loading NPC's

Status
Not open for further replies.
So that is a 31% profit if I am correct. How many Lua files are there and how much overall performance profit could you have?
Quite impressive that you have made such progress, but if there are very few Lua files (I have no idea) to load, the overall loading time would not be significant effected.
 
Time: 54(ms) <= lua 5.1 method
Time: 29(ms) <= lua 5.2 method

46.2% faster...

I am gonna check if it's better to make whole resource in lua.

@EDIT:
Tests done ....

For Items with property like Spec_Item there is no sense in making it lua.

Just loading the file takes 2x more time than source function which also adds to memory....

But rest can be I think :P
 
Status
Not open for further replies.
Back