SFML community forums

Help => Window => Topic started by: Garwin on May 17, 2023, 07:56:03 pm

Title: Clock in sf:Window
Post by: Garwin on May 17, 2023, 07:56:03 pm
I can see that sf::Window has member sf::Clock and it is used for FrameLimit.

Why there is no public function to provide time between frames if sf::Window has this information?
Title: Re: Clock in sf:Window
Post by: Thrasher on May 17, 2023, 09:10:47 pm
https://github.com/SFML/SFML/pull/2554

It's so funny you bring this up because I made this very PR yesterday! Please give this a thumbs up or approval if it's something you'd use.
Title: Re: Clock in sf:Window
Post by: Garwin on May 19, 2023, 08:18:26 am
It is I get the idea morning but wrote it there in the evening so practically at the same time you were writing it on GitHub. :-)

I will, but I need first to create an account on GitHub and get familiar with how to work with it. I have not yet found the time to do it through all the learning C++ staff and my first small game (15 puzzle style with pictures) is so badly written it is not worth publishing it.

However, I am now working on creating borders in style 4x game using cells and a Voronoi diagram, and as the basic structure is about 70 % finished, I hope that I can finish it in a couple of weeks as time allows to make exact calculations algorithm.