FPS Indicator in HUD code?

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
JeffBTX
---- E L I T E ----
---- E L I T E ----
Posts: 366
Joined: Sun Dec 27, 2009 2:23 pm
Location: Abilene Texas

FPS Indicator in HUD code?

Post by JeffBTX »

Hi, all.

I am back to playing Oolite after a hiatus of a few months; I was playing 1.73.(something), and now I have installed 1.74.2.

I am gradually feeling my way around and getting used to things again.

One little minor question; I did a topic search and it doesn't seem to be addressed.

In the default hud.plist, there is this code:

Code: Select all

		{	// fps counter, x and y give the location, the size defines the character size
			height		= 18;
			selector	= "drawFPSInfoCounter:";
			width		= 18;
			x		= -300;
			y		= -20;
			y_origin	= 1;
		}
... and I don't see any such FPS counter on my screen? Thanks...
Sword, thy name is Cobra. And Cobra has fangs!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6685
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

The FPS counter and the information that goes together with it, like number of entities processed, collisions, memory usage and TAF, are switched off by default. Press Shift+f to toggle them on/off.

If you are pressing Shift+f and still don't see the FPS counter, then please post Latest.log.
User avatar
JeffBTX
---- E L I T E ----
---- E L I T E ----
Posts: 366
Joined: Sun Dec 27, 2009 2:23 pm
Location: Abilene Texas

Post by JeffBTX »

another_commander;

Thanks for that very fast reply... very appreciated.
Sword, thy name is Cobra. And Cobra has fangs!
User avatar
snork
---- E L I T E ----
---- E L I T E ----
Posts: 551
Joined: Sat Jan 30, 2010 4:21 am
Location: northern Germany

Post by snork »

You can see it in action in the "I built me a HUD" topic - veery nice! :)

https://bb.oolite.space/viewtopic.php?t=8698&highlight=

------------------------

Would there be a way to have it switched on by default after a jump ?
I have to shift+F after every jump again.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6685
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

snork wrote:
Would there be a way to have it switched on by default after a jump ?
I have to shift+F after every jump again.
That is probably an omission or bug with the HUD you are using. Are you using a ship with switchable HUDs? With the default one, the display remains always on until you manually switch it off again.
User avatar
snork
---- E L I T E ----
---- E L I T E ----
Posts: 551
Joined: Sat Jan 30, 2010 4:21 am
Location: northern Germany

Post by snork »

Ah, ok. Thanks. :)

And yes that HUD switches with condition red/yellow/green.

I will go pondering with the default HUD ....
Post Reply