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)

Chompy 02-17-2009 11:47 PM

Quote:

Originally Posted by DustyPorViva (Post 1467352)
So Graal isn't always at 20fps?

Not according to the program I have. I'll take a look and check it out while browsing/visitting servers tomorrow.

cbk1994 02-18-2009 12:14 AM

Say "showscriptstats" on player.

Not exactly what you want, I think, but it should be good enough. Then check F2 (under scripts).

DustyPorViva 02-18-2009 12:35 AM

Quote:

Originally Posted by -Ramirez- (Post 1467371)
Graal uses one thread for rendering and handling Windows events. When resizing or dragging any window (not a graphics engine window), it's going to prevent the render loop from processing. This will obviously result in a reduction in frame rate temporarily. Nobody ever implied that Graal can't go UNDER 20 FPS anyway, as such an assumption is just ignorance.

When I requested a way to display FPS, Stefan said Graal was always running at 20fps, so there was no need for such a thing.

edit:http://forums.graalonline.com/forums...89&postcount=3 though it seems I wasn't the one who requested it. Odd.

-Ramirez- 02-18-2009 12:39 AM

Quote:

Originally Posted by DustyPorViva (Post 1467372)
When I requested a way to display FPS, Stefan said Graal was always running at 20fps, so there was no need for such a thing.

I hate you for quoting that before I deleted it. What I said was actually an assumption in itself.

However, Stefan probably assumed that you thought Graal could exceed 20 FPS. He wouldn't have meant what HE said to mean "it can't go under 20 FPS", because as I said, that's ignorance of how games work. That's like thinking any processor, regardless of how old it is, is capable of producing 20 FPS just because you think someone said so. AFK, digging out a 19 year old processor so I can get 20 FPS guaranteed.

Tyhm 02-18-2009 02:31 AM

Then again, he might be Very Literally Correct - it seems that every 1.00 seconds (remember, a second's a long time) Graal runs a Catch-Up routine that applies-and-clears any frames still in the buffer, thus the jerky-lagginess of some enemies. So when he says it runs at Always 20 FPS, it is Technically Always 20 - just when you're laggy you get to see 1, 2, and 3, then 4-20 get squished together at 1.00 seconds. *shrugs*

Doesn't help us out any, but there it is.

DustyPorViva 02-18-2009 02:36 AM

Quote:

Originally Posted by Tyhm (Post 1467412)
Then again, he might be Very Literally Correct - it seems that every 1.00 seconds (remember, a second's a long time) Graal runs a Catch-Up routine that applies-and-clears any frames still in the buffer, thus the jerky-lagginess of some enemies. So when he says it runs at Always 20 FPS, it is Technically Always 20 - just when you're laggy you get to see 1, 2, and 3, then 4-20 get squished together at 1.00 seconds. *shrugs*

Doesn't help us out any, but there it is.

In that case, it's running 4fps, because 5-20 are not being displayed.

RozenMaiden 02-18-2009 03:21 PM

still wondering about the 20 fps thingy

isn't 25-30 minimum the standard for games?

Tyhm 02-18-2009 03:29 PM

*shrugs* Graal's been running on the 0.05 standard for nearly a decade. I'm sure if Stefan felt like it he could lower it all the way to 0.02 (50 FPS, as well as the ganis and anigifs) and leave it up to the video card to figure out how many it Really wants to display...

DustyPorViva 02-18-2009 11:10 PM

Apparently Graal runs at 15fps for me at Town Center on UN at maximized.

-Ramirez- 02-18-2009 11:24 PM

If you find the need to post such a comment, you clearly still don't understand the concepts involved.

DustyPorViva 02-18-2009 11:26 PM

Quote:

Originally Posted by -Ramirez- (Post 1467714)
If you find the need to post such a comment, you clearly still don't understand the concepts involved.

What?

Tyhm 02-18-2009 11:30 PM

PHP Code:

if(createdthis.oldtimevar=timevar+1;
if(
playerenters||timeout){
  if(
this.oldtimevar<timevar){
//100 is healthy; 75 is laggy; 50 is doomtacular
    
if(this.i<75set lowres;
    if(
lowres&&this.i>95) unset lowres;
    
message #v(timevar): #v(this.i);
    
this.i=0;
    
this.oldtimevar=timevar;
  }
  
this.i++;
  
timeout=0.05;


Rudementary but effective.

And Stefan knows full well Graal can run "at reduced framerate", he put in a DirectX Error Message suggesting the player press F1 and turn off lighting effects.

DustyPorViva 02-18-2009 11:48 PM

Quote:

Originally Posted by Tyhm (Post 1467718)
PHP Code:

if(createdthis.oldtimevar=timevar+1;
if(
playerenters||timeout){
  if(
this.oldtimevar<timevar){
//100 is healthy; 75 is laggy; 50 is doomtacular
    
if(this.i<75set lowres;
    if(
lowres&&this.i>95) unset lowres;
    
message #v(timevar): #v(this.i);
    
this.i=0;
    
this.oldtimevar=timevar;
  }
  
this.i++;
  
timeout=0.05;


Rudementary but effective.

And Stefan knows full well Graal can run "at reduced framerate", he put in a DirectX Error Message suggesting the player press F1 and turn off lighting effects.

I forgot about that rofl.

Admins 02-20-2009 02:45 PM

Graal is running at 20 fps and tries to keep that framerate as best as possible, if one frame is taking slightly more time it will wait less time until the next frame. The engine supports unlimited frame rate, that mode is used for Graal3D, but for normal Graal it will not be good because animations and scripts are made for 20 fps, server-side scripts are 10 fps, and if it's running at unlimited fps the animations and scripts can act out of sync - 21 fps means the animation is stopping at some frame which looks jumpy.

The next Graal version will be more optimized, it's using DirectX9 on Windows, is fully C++ (current version is still some Pascal/Delphi), and is made to run fast enough on iPhone (optimized particle engine, removed some unneeded code, scripting engine is having less overhead) so it should be faster for normal playing as well.

Crow 02-20-2009 02:58 PM

Quote:

Originally Posted by Stefan (Post 1468151)
Graal is running at 20 fps and tries to keep that framerate as best as possible...

Doesn't seem to work very well. Or the movement system on Kingdoms just sucks. I did a small test earlier, and framerate drops to about 15 frames per second whenever I just walk around on GK. It's usually at 20 when standing still though.


All times are GMT +2. The time now is 05:07 PM.

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