Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Icey on Thu 10/02/2011 04:11:48

Title: FPS loading icon
Post by: Icey on Thu 10/02/2011 04:11:48
Is there any way I can have AGS check if the FPS is low to show a GUI with a animating icon until the FPS is to the point were the game will run a little more faster?
Title: Re: FPS loading icon
Post by: Ryan Timothy B on Thu 10/02/2011 04:21:00
Are you speaking of:

Debug(4, 1);

Or literally some kind of loading screen? Not sure why it would be looking at the FPS rate, it shouldn't bog down much on the room loadings.
Title: Re: FPS loading icon
Post by: Icey on Thu 10/02/2011 04:29:27
I mean I don't think I want the FPS to be visible but if some was playing and the game started going slow I just want to set the position of a GUI with a animating/non-clickable button to pop up. then if the game goes normal speed again it goes away.

Like a buffering icon for when the game goes slow.
Title: Re: FPS loading icon
Post by: Gilbert on Thu 10/02/2011 05:00:39
As far as I know the Debug() FPS feature is good for nothing because you need to enable debug mode to use it, which is a big NO for game releases and also it will only shows the information on screen so you cannot address the value via scripting.

Scorpiorus had written a software FPS detecting function (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=5388.0) and that may be of use to you. (Though personally I'll rather want the engine to have an internal function for it.)
Title: Re: FPS loading icon
Post by: Dualnames on Thu 10/02/2011 05:00:51
Quote from: Studio3 on Thu 10/02/2011 04:29:27
I mean I don't think I want the FPS to be visible but if some was playing and the game started going slow I just want to set the position of a GUI with a animating/non-clickable button to pop up. then if the game goes normal speed again it goes away.

Like a buffering icon for when the game goes slow.

I just modularized(?) Scorpiorus code.

http://www.mediafire.com/?6bjl510l1phh11f

EDIT: Gilbet you seem to remember it as well :D
EDIT2: Changed my choice of words :P
Title: Re: FPS loading icon
Post by: Icey on Thu 10/02/2011 05:32:56
OK I will check it out.

Thanks guys.
Title: Re: FPS loading icon
Post by: Gilbert on Thu 10/02/2011 05:38:05
Quote from: Dualnames on Thu 10/02/2011 05:00:51
Scorpiorus made an FPS module. I just modularized(?) it.
If that's already a module in the first place, do you need to re-modularise it? :=
Title: Re: FPS loading icon
Post by: Dualnames on Thu 10/02/2011 05:48:32
Quote from: Iceboty V7000a on Thu 10/02/2011 05:38:05
Quote from: Dualnames on Thu 10/02/2011 05:00:51
Scorpiorus made an FPS module. I just modularized(?) it.
If that's already a module in the first place, do you need to re-modularise it? :=

I thought he actually made a module, but seems he didn't really. Just nevermind what I said, he just had the code and not the file :P