Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to interpret ScriptProfiler
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #1
How to interpret ScriptProfiler
After i enable the scriptprofiler , i can get the average execution times of triggers and functions that are called .

So i have like this report

TRIGGER '@hittry' called 171 times, took 0.2768 msec average (0.1810 min, 1.2952 max), total: 47.3731 msec

Are those times influencing lag ? If i have a 6 players fighting each other, the last player will suffer a 0.2768*5 delay before his @hittry trigger will fire?
(This post was last modified: 04-25-2012 11:13 PM by darksun84.)
04-25-2012 10:53 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: How to interpret ScriptProfiler
they are in milliseconds so 0.2768 is pretty low value. but answer is yes, since sphere is single threaded all things in server stop for 0.2768 milliseconds.
(This post was last modified: 04-26-2012 02:48 AM by Shaklaban.)
04-26-2012 02:41 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: How to interpret ScriptProfiler
ach.. well yes it's very low , but if we had to sum all the others things too Shock! i have to optimize more things Big Grin
(This post was last modified: 04-29-2012 11:55 PM by darksun84.)
04-29-2012 11:46 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #4
RE: How to interpret ScriptProfiler
Well your average was from all 171 hit tries. How long of a time period did that last? That's what you have to ask yourself. I mean yes, you'd want to optimize if you have like 100 players on at once messing around; still that time isn't too bad.
04-30-2012 12:48 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: How to interpret ScriptProfiler
i noticed that sometimes it's better to avoid calling functions and put the code directly in the trigger Big Grin
04-30-2012 01:55 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #6
RE: How to interpret ScriptProfiler
For the most part yes, but not always. You really shouldn't have much worries unless you have about 200 players all in a combat sequence from what I see. Standard @HitTry is reading from a swing speed anyhow and I doubt you are going to have 50 people all executing an attack swing at the same time.
04-30-2012 04:32 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)