SFML community forums
Help => Window => Topic started by: Auron on August 05, 2009, 04:27:33 am
-
Hey Guys,
I was wondering if there was a way to show the FPS or Framerate in the title bar of the window? I've seen it done in other libraries and engines, but I have just started using SFML. Any exmaples, please?
-
There currently is no way to change the window title.
-
So you're saying that you can't display the framerate or FPS in the title bar window. Only the name of the window.
-
Once you've created the window you can't change its title.
If you want to quickly display the current FPS you can use FRAPS.
-
Ah, ok, thanks.
-
Or if you really want to you can get the window handle and change the title yourself...but that would require work.
-
I just wanted to display the FPS in the title bar, but if there's not a lot that can be done about, then its no biggie.
-
It sounds like a neat idea though having an fps counter in the titlebar.
You could create an sf::RenderWindow without a titlebar,
then blit your image of a titlebar to the top of the screen every frame while also outputing an sf::String anywhere in that titlebar.
(just a thought).
-
It sounds like a neat idea though having an fps counter in the titlebar.
You could create an sf::RenderWindow without a titlebar,
then blit your image of a titlebar to the top of the screen every frame while also outputing an sf::String anywhere in that titlebar.
(just a thought).
That would only work for one platform. Imagine running a program on linux and having the windows xp titlebar showing up.
-
You can have a style sheet file to do the job.
-
Once you've created the window you can't change its title.
If you want to quickly display the current FPS you can use FRAPS.
Will there be a future method to change the title? If not, why?
-
Will there be a future method to change the title?
I still don't know ;)
-
Wow, I'm surpirsed this thread still kept going. I haven't used SFML in awhile, and forgot, well pretty much everything. Although I'm now thinking of starting up again.