Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2008, 11:06 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Measure Clientside CPU

Is there any way to measure what scripts are causing the most lag on clientside? I know there is /stats on serverside, but Utopia has a TON of clientside lag, and I can't figure out how to isolate it. I'm about halfway through the process of rescripting Bloo's inefficient and laggy scripts, but it would be nice to know what else is causing the lag.

Is there any way to tell on clientside?

Thanks,
Chris Zakuto
__________________
Reply With Quote
  #2  
Old 02-07-2008, 11:36 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
In player chat type "showscriptstats" and it should be reported to the F2 window. Doesn't work with custom chat systems though (the command must be called from the "ChatBar" object).
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 02-07-2008, 11:38 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by zokemon View Post
In player chat type "showscriptstats" and it should be reported to the F2 window. Doesn't work with custom chat systems though (the command must be called from the "ChatBar" object).
.....<3!!!!!!!
Reply With Quote
  #4  
Old 02-07-2008, 11:41 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by zokemon View Post
In player chat type "showscriptstats" and it should be reported to the F2 window. Doesn't work with custom chat systems though (the command must be called from the "ChatBar" object).
I love you <3

I will give you reputation tomorrow. It has been added to my calendar
__________________
Reply With Quote
  #5  
Old 02-09-2008, 03:01 AM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
Quote:
Originally Posted by cbkbud View Post
...I'm about halfway through the process of rescripting Bloo's inefficient and laggy scripts, but it would be nice to know what else is causing the lag.
Which ones?
If it's my tool then it means it's being used all at one time (obnoxious staffblock placing/player dragging)

I've tried to alleviate it in the past by reading from a clientr flag for rights through a function instead of asking the RightSys NPC. (look in bloofunctions - queryRight(right))

It may help if you put a return; after every command (after the functions of each if(params[0] == "blah"){ etc.)
__________________
Trying to be nice now...
Reply With Quote
  #6  
Old 02-09-2008, 03:32 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by bscharff View Post
Which ones?
If it's my tool then it means it's being used all at one time (obnoxious staffblock placing/player dragging)

I've tried to alleviate it in the past by reading from a clientr flag for rights through a function instead of asking the RightSys NPC. (look in bloofunctions - queryRight(right))

It may help if you put a return; after every command (after the functions of each if(params[0] == "blah"){ etc.)
It's not a problem with a return. It's just generally too many loops, etc.

Noone is using your crappy tool anymore anyway.
__________________
Reply With Quote
  #7  
Old 02-09-2008, 06:51 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Twinny View Post
.....<3!!!!!!!
I'm surprised you didn't know about that.
__________________
Reply With Quote
  #8  
Old 02-09-2008, 12:19 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Inverness View Post
I'm surprised you didn't know about that.
I'm surprised I didnt know that, too D: Thanks Zero, but I have to spread more reputation before giving some to you again
Reply With Quote
  #9  
Old 02-09-2008, 04:46 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
No problem
It's just not really documented anywhere. I don't even remember where I picked that up.
__________________
Do it with a DON!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.