using Godot; using System.Collections.Generic; using System.Linq; public partial class Fps : Label { public override void _Ready() { List settings = Utils.LoadSettings(); bool showFPS = settings.ElementAtOrDefault(2) == "1"; if (!showFPS) { Visible = false; } } public override void _Process(double delta) { Text = "FPS: " + Engine.GetFramesPerSecond(); } }