using SFML.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { RenderWindow win = new RenderWindow(new SFML.Window.VideoMode(1920, 1280), "E"); win.SetVerticalSyncEnabled(true); Text text = new Text(); text.Position = new SFML.System.Vector2f(1, 1); while (win.IsOpen) { var fps = 0; text.DisplayedString = String.Format("Fps {0}", fps); } } } }
как получить FPS(Frame rate) окна?