Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Measure Clientside CPU (https://forums.graalonline.com/forums/showthread.php?t=78622)

cbk1994 02-07-2008 11:06 PM

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

zokemon 02-07-2008 11:36 PM

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).

Twinny 02-07-2008 11:38 PM

Quote:

Originally Posted by zokemon (Post 1374047)
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!!!!!!!

cbk1994 02-07-2008 11:41 PM

Quote:

Originally Posted by zokemon (Post 1374047)
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 :)

bscharff 02-09-2008 03:01 AM

Quote:

Originally Posted by cbkbud (Post 1374038)
...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.)

cbk1994 02-09-2008 03:32 AM

Quote:

Originally Posted by bscharff (Post 1374244)
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.

Inverness 02-09-2008 06:51 AM

Quote:

Originally Posted by Twinny (Post 1374048)
.....<3!!!!!!!

I'm surprised you didn't know about that. :noob:

Crow 02-09-2008 12:19 PM

Quote:

Originally Posted by Inverness (Post 1374275)
I'm surprised you didn't know about that. :noob:

I'm surprised I didnt know that, too D: Thanks Zero, but I have to spread more reputation before giving some to you again >_<

zokemon 02-09-2008 04:46 PM

No problem :)
It's just not really documented anywhere. I don't even remember where I picked that up.


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

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