Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Clientside Lag Scan (https://forums.graalonline.com/forums/showthread.php?t=84260)

Tyhm 02-17-2009 06:47 AM

Clientside Lag Scan
 
Is there a quick and easy way to tell how bad the client's currently lagging? I mean, is there something like player.framerate(); //returns the player's framerate? I don't imagine it'd be that hard to make a script that counts up and compares to the timevar every 5 seconds, but if there's an easier way I'd rather use that...

DustyPorViva 02-17-2009 07:41 AM

No. Apparently Stefan said Graal "always runs at 20fps", when I requested a way to show your fps. I don't believe it though, because Graal can obviously slow down.

Tyhm 02-17-2009 08:51 AM

Man, what was that old feature that showed your lag at the bottom-right corner? Control F, Shift F, Alt F, something. Sometimes I wonder how much is the language barrier and how much is just an excuse to get out of a conversation. ;-D

DustyPorViva 02-17-2009 08:58 AM

alt+4 shows bitrate(IE data transfer outgoing/incoming, I believe). I don't think he had a problem understand because Graal does ideally run at 20fps(hence the 0.05 timeout, 1s/20frames=0.05). The problem is he thinks Graal always runs at 20fps. While it is programmed to run 20fps, it will vary depending on how it's actually running. I'm not a programmer so I don't know for sure, but I do know Graal can slow down.

Inverness 02-17-2009 10:33 AM

Quote:

Originally Posted by DustyPorViva (Post 1467224)
The problem is he thinks Graal always runs at 20fps.

Stefan is not as stupid as you seem to think.

RozenMaiden 02-17-2009 12:39 PM

20 fps? wow now i know why graal feels laggy all the time

Tyhm 02-17-2009 02:21 PM

Piffle, most animation's 24fps. Honestly...

Admins 02-17-2009 02:23 PM

In the next Graal version there is a command "/clientstats accountname" which can be used to see where the game is slow or which scripts are slow.

Tyhm 02-17-2009 02:48 PM

Hmm, that'll be handy from RC, but I guess I'll have to code the timeout - versus - timevar thing. The good news is I can just have it run the check in a system NPC which is running a timeout anyway to cut down on the overhead, and set a client.var when the client's lagging to tell all the other clientside scripts to switch to lowres.
Still, thanks for the heads up! I appreciate knowing that my work won't be rendered obsolete in the next edition. :-D

DustyPorViva 02-17-2009 08:33 PM

Quote:

Originally Posted by Inverness (Post 1467234)
Stefan is not as stupid as you seem to think.

I know he's not stupid? I already said I could be wrong. Anyways, slap 100 particles in a level and tell me it's still running at 20fps.

Switch 02-17-2009 08:36 PM

Quote:

Originally Posted by DustyPorViva (Post 1467328)
I know he's not stupid? I already said I could be wrong. Anyways, slap 100 particles in a level and tell me it's still running at 20fps.

Or 1000 bombs :D

Chompy 02-17-2009 09:34 PM

Quote:

Originally Posted by DustyPorViva (Post 1467328)
Anyways, slap 100 particles in a level and tell me it's still running at 20fps.

Quote:

Originally Posted by Switch (Post 1467329)
Or 1000 bombs :D

CPU is the keyword in those cases.

DustyPorViva 02-17-2009 09:51 PM

Quote:

Originally Posted by Chompy (Post 1467345)
CPU is the keyword in those cases.

Point? If I run a 3D game and my processor can't handle whatever AI or other calculations are going on, my FPS will suffer, even if my graphics card can handle it all. Point is, in those cases Graal is not displaying 20 frames per second, regardless of what the cause is.

Chompy 02-17-2009 10:05 PM

Quote:

Originally Posted by DustyPorViva (Post 1467347)
Point? If I run a 3D game and my processor can't handle whatever AI or other calculations are going on, my FPS will suffer, even if my graphics card can handle it all. Point is, in those cases Graal is not displaying 20 frames per second, regardless of what the cause is.

According to some program I have, Graal start at around.. 8 FPS and goes up to 20 FPS when loading. Then it will go between 20 and 21 FPS sometimes. When moving the window around, the FPS will drop to 15 and go up to 20 FPS.

There are just some stuff I've noticed.

DustyPorViva 02-17-2009 10:54 PM

Quote:

Originally Posted by Chompy (Post 1467350)
According to some program I have, Graal start at around.. 8 FPS and goes up to 20 FPS when loading. Then it will go between 20 and 21 FPS sometimes. When moving the window around, the FPS will drop to 15 and go up to 20 FPS.

There are just some stuff I've noticed.

So Graal isn't always at 20fps?


All times are GMT +2. The time now is 01:31 PM.

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