Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Era Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=162)
-   -   Higher FPS on Era (https://forums.graalonline.com/forums/showthread.php?t=134269759)

xDarkTAx 12-29-2014 03:14 AM

Higher FPS on Era
 
Is it possible to increase the FPS on Era?Would it work out without a ton of changes? In this age 30-60 fps is easily obtainable by all modern computers and the increased FPS would greatly increase the game while making it less "choppy".

Tim_Rocks 12-29-2014 03:20 AM

Would have to get unixmad involved (where ever he is). That being said, would it really make a big difference on a 2D game? I'm not really sure, but I do know it couldn't hurt.

Crow 12-29-2014 07:49 AM

Quote:

Originally Posted by Tim_Rocks (Post 1733575)
That being said, would it really make a big difference on a 2D game?

Yes.

xDarkTAx 12-29-2014 09:40 AM

I don't think the game being 2d makes a higher FPS any less important. All I know is that I can literally see the how choppy the game is when I play compared to even 30fps games. I play games at 144fps on my 144hz monitor and it's just worlds of difference from 30/60. I never understood fully why the game was capped at 20fps.

Kohola_KinG 12-29-2014 10:14 AM

Quote:

Originally Posted by xDarkTAx (Post 1733581)
I don't think the game being 2d makes a higher FPS any less important. All I know is that I can literally see the how choppy the game is when I play compared to even 30fps games. I play games at 144fps on my 144hz monitor and it's just worlds of difference from 30/60. I never understood fully why the game was capped at 20fps.

If i am not mistaken it's capped at 21.

Crow 12-29-2014 11:32 AM

Quote:

Originally Posted by Kohola_KinG (Post 1733582)
If i am not mistaken it's capped at 21.

It's 20.

Kohola_KinG 12-29-2014 12:32 PM

Quote:

Originally Posted by Crow (Post 1733583)
It's 20.

I have had 21 FPS a lot of times and Wil gets 21 FPS constant that's why he's always that sec faster than everyone else.

Crow 12-29-2014 12:46 PM

Quote:

Originally Posted by Kohola_KinG (Post 1733584)
I have had 21 FPS a lot of times and Wil gets 21 FPS constant that's why he's always that sec faster than everyone else.

You're not a very smart man.

Kohola_KinG 12-29-2014 01:14 PM

Quote:

Originally Posted by Crow (Post 1733585)
You're not a very smart man.

You can get 21 FPS on era.

Kohola_KinG 12-29-2014 01:18 PM

http://i61.tinypic.com/24ovio9.png

Tim_Rocks 12-29-2014 01:23 PM

I think its worth doing, but I don't think it will actually happen.

cbk1994 12-29-2014 04:04 PM

Quote:

Originally Posted by Kohola_KinG (Post 1733586)
You can get 21 FPS on era.

It's either an off-by-one error in the FPS counter I wrote, or maybe an artifact of rounding. Graal is locked at 20 FPS, as Crow said.

Eclipse 12-29-2014 09:07 PM

oooo this guy ^^^ hello sir

Kohola_KinG 12-29-2014 10:49 PM

Quote:

Originally Posted by cbk1994 (Post 1733589)
It's either an off-by-one error in the FPS counter I wrote, or maybe an artifact of rounding. Graal is locked at 20 FPS, as Crow said.

Wil is locked at 21. I guess you did that too.

Tim_Rocks 12-30-2014 12:02 AM

Quote:

Originally Posted by Kohola_KinG (Post 1733592)
Wil is locked at 21. I guess you did that too.

Mines usually at 21 consistently as well. I use a Mac though, don't know if that makes a difference.

Demisis_P2P 12-30-2014 02:46 AM

Quote:

Originally Posted by Tim_Rocks (Post 1733575)
Would have to get unixmad involved (where ever he is). That being said, would it really make a big difference on a 2D game? I'm not really sure, but I do know it couldn't hurt.

I don't care about it for the sake of making the game feel less "choppy", but scripts only update once per frame, which is why everything has to be in multiples of 0.05.
If we had 60 FPS we could get a lot more weapon diversity on Era.

And we could make projectiles faster as well, because the current limitation for the projectile speed is the onwall check each frame.

cbk1994 12-30-2014 03:24 AM

Quote:

Originally Posted by Demisis_P2P (Post 1733594)
And we could make projectiles faster as well, because the current limitation for the projectile speed is the onwall check each frame.

I don't think the collision check is the real issue. At one point I recreated the default projectiles (and spent a lot of time getting the collision detection to be identical) -- they ended up being basically functionally equivalent, but with lots of other options (variable speed, etc.). We had planned on switching to them, but didn't mainly because it was a lot of work. It's a shame because it could have added many more options for guns.

The default projectiles don't even allow you to slow down bullets, let alone make them faster.

Tim_Rocks 12-30-2014 03:36 AM

Quote:

Originally Posted by cbk1994 (Post 1733595)
I don't think the collision check is the real issue. At one point I recreated the default projectiles (and spent a lot of time getting the collision detection to be identical) -- they ended up being basically functionally equivalent, but with lots of other options (variable speed, etc.). We had planned on switching to them, but didn't mainly because it was a lot of work. It's a shame because it could have added many more options for guns.

The default projectiles don't even allow you to slow down bullets, let alone make them faster.

Are there still examples on the server?

Quote:

Originally Posted by Demisis_P2P (Post 1733594)
I don't care about it for the sake of making the game feel less "choppy", but scripts only update once per frame, which is why everything has to be in multiples of 0.05.
If we had 60 FPS we could get a lot more weapon diversity on Era.

And we could make projectiles faster as well, because the current limitation for the projectile speed is the onwall check each frame.

Just wanna be clear, I 100% agree that it should be done. I just really don't think it's going to happen.

Demisis_P2P 12-30-2014 04:41 AM

Quote:

Originally Posted by cbk1994 (Post 1733595)
I don't think the collision check is the real issue. At one point I recreated the default projectiles (and spent a lot of time getting the collision detection to be identical) -- they ended up being basically functionally equivalent, but with lots of other options (variable speed, etc.). We had planned on switching to them, but didn't mainly because it was a lot of work. It's a shame because it could have added many more options for guns.

The default projectiles don't even allow you to slow down bullets, let alone make them faster.

That actually sounds really cool.

Not sure how much things have changed since the first time Snakeandy and I tried to increase the speed of them, because even at 1.5 tiles per frame there was almost a 50/50 chance that the projectile would clip a wall 2 tiles thick. Can't remember now if he ever changed the actual collision check because I think it was only ever checking the tile infront of the projectile, whereas at that speed you'd need to include a tile infront of that and the current tile.
But I remember he just gave up and made that Gun/Bonus Feature instead, which let you increase the clip size of a gun.

WillaWonka 12-30-2014 08:59 AM

Sounds like a Era 2 kind of change, because that's digging in deep when it comes to updating the game. Many things will have to change, aside from the weapons, images and many gfx updates as well since the frames will be smoother, thus more images to compensate, id think.

Fiberwyre_P2P 12-30-2014 08:43 PM

Raising the FPS would make a big difference and, at the same time, no difference.
Everything in the game is tuned to run at 20 FPS.
Animations certainly aren't going to just magically run at 60 FPS if you raise it to 60.
Loops in scripts are hardcoded to run at 20 FPS.
Gun stats are in increments of .05 (1/20th of a second).

So basically, JUST raising the FPS wouldn't do anything. There would also be a ton of work to do to actually make it worth doing.

Probably the only immediate change you would see is everyone would be moving 3x as fast, since I'm pretty sure Graal/Era's movement system doesn't account for time deltas between frames, as evidenced by running exceptionally slow when you're running at a sub-20 FPS.

xDarkTAx 01-01-2015 05:10 AM

Is it possible to forcibly uncap a games locked FPS? And would this increase your ingame speed/get you banned immediately? Along with what Koho said I can get the ingame FPS counter to get up 24 by going inside and outside levels rapidly.
http://puu.sh/dV8zZ/bc649e7107.png

Quote:

Originally Posted by Fiberwyre_P2P (Post 1733599)
So basically, JUST raising the FPS wouldn't do anything. There would also be a ton of work to do to actually make it worth doing.

This was also my main thought. I know 60fps would change the game but I was unsure how much work would need to be done to make the game actually playable at 60fps. Apparently a ton.

cbk1994 01-01-2015 02:04 PM

Quote:

Originally Posted by xDarkTAx (Post 1733617)
Is it possible to forcibly uncap a games locked FPS? And would this increase your ingame speed/get you banned immediately?

Yes, this is what the speed hack detection does. We found quite a few people toggling speed hacks for raiding when we first developed it.

Crow 01-01-2015 08:48 PM

I'd like to add - not sure if the current version is affected by it - that Graal also (obviously) does not properly compensate for lower frames per second. Back when I played Atlantis on Graal v2.3 on my 233 MHz machine, I got less than 20 frames per second. Because of that, my buffs lasted longer. This, of course, was due to their duration being calculated on the clientside entirely - bad code, essentially. But there are many other ways this could've and has affected gameplay back then.


All times are GMT +2. The time now is 10:02 PM.

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