83ms = 0.083s
Once a player has loaded an area (and the scripts fire) just the fadeout from the loading screen takes over twenty times as long. Plus, PCs dont enter areas THAT often, unless you have a really, really populated server. And there is no "correct" execution time. Scripts takes exactly long to execute as they should, and if your script is made with some thougth on your loops, it won't take long enough to execute to cause concern. (If your loops are fine and your execution time is very long, you either have 10k lines of code or something is very, very wrong)
Performance seems to be something some are very worried about here, but really, the most important thing is your scripts are easy to work with and to understand, especially if someone other then you will work with them later. The only time you really should focus on performance is when the script is actually going to fire everywhere and all the time, like a global OnHit property on all PCs and NPCs for custom damage calculation or something nuts like that.
Modifié par Xardex, 25 octobre 2011 - 08:49 .