Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DanielDorn1997

Pages: [1]
1
Feature requests / Re: Get Monitor Refresh Rate.
« on: March 18, 2016, 02:25:33 am »
@Hapax it just makes graphics look smoother, the reason for only going double is because going any higher than double is not noticeable to the human eye, that is the only reason to have a fps double the refresh rate, as for other reasons not to go higher than double just read my other post as they explain :)

2
Feature requests / Re: Get Monitor Refresh Rate.
« on: March 18, 2016, 02:07:44 am »
@Hapax frame rate as in the games fps, and refresh rate of the monitor, having the render frame limit equal to double the refresh rate is ideal for a game to stay smooth, the renders frame limit in no way effects the games logic / physics update since it is all based on delta time not frame limits

An example for instance you have a class called game, game is the main game loop where the render loop, logic / physics loop, and event loop is executed, the frame limit only effects the render loop since in terms of how smooth the game looks, it doesn't really effect the games logic because as any game loop should have every things is based off delta time for updates, you should never base game logic / physics on frame rate updates instead you should implement a timer to get delta time and update based on that.

also as is said to @eXpl0it3r i already made a implementation to work around, but thank you for the reply  :)

3
If you are looking for file system to Read / write files just use one of the huge mammoth sized libraries that provide this already, one good library for doing this that is made for c++ is http://pocoproject.org/ poco was made for c++ as an alternative to boost, as for displaying dialogs just use a library like SFGUI for GUI.

I would highly recommend to not use QT with SFML since you will have to write your own wrapper for QT, and although there is a tutorial from SFML 1.6 http://www.sfml-dev.org/tutorials/1.6/graphics-qt.php, which can be used with sfml 2.3.2 i would just recommend using SFGUI.

SFGUI is a library very tightly integrated with SFML solely for the purpose of GUI, however you will have to build the library yourself with cmake since it does not provide binaries any more, so as long as you can use cmake, with nmake or what ever make file system you are using to build with than this is a very good option.

that being said like every on else here has said there is not point in re inventing the wheel e.g. ( why implement a file system api when there are many others currently out and c++17 is about to have it's own as well ).

4
Feature requests / Re: Get Monitor Refresh Rate.
« on: March 18, 2016, 01:44:32 am »
@eXpl0it3r my last reply i posted was just breaking the other reply's aka.( walls of text as Laurent put it  ;) ) into readable groups of text as requested of Laurent which, i saw that Laurent had updated the reply to say an API is already being planned so i left it at that, as for my problem i already fixed it, just did my own version of the implementation.

My temporary version of the implementation was to just use the config.h file provided by sfml to check what OS is being used, after that i just implemented the functions i needed for Mac OSX, Linux, Windows.

But thank you for the reply and possible work around's it was appreciated  :)

5
Feature requests / Re: Get Monitor Refresh Rate.
« on: March 17, 2016, 10:22:45 pm »
@Laurent sorry for the above post being cluttered together (=,

The first point i was trying to make with the original post was, i think there should be a function in SFML to get the refresh rate of a monitor, the need for getting the refresh rate of the monitor is pretty fundamental to most game loops that rely on fame limiting, that being said i think it should be part of SFML because SFML manages the applications window thus already having to receive information about the monitor, so implementing should not be to difficult.

But to further the point not getting the refresh rate of a monitor directly effects any and all applications using SFML, since your max frame rate should never be higher than double the monitor refresh rate, that being said you could simple just say in the programming the refresh rate is always 60Hz but this will not work because most newer monitors now are running at 120Hz - 144Hz,

Now how exactly does all applications using SFML, this effects not only how smooth the application / game looks, but also effects performance because if your frame limit is higher than double the refresh rate you are not seeing any difference than if it was just double the refresh rate, thus you are wasting cycles, reducing performance, and hindering hardware.

Now you could also say just set the Frame rate double that of 144Hz or in other words 288 fps the highest most monitors refresh rates are but even with this approach there are problems, since running 288 fps on a monitor that only runs 60Hz is wasting cycles and performance.

i hope this is less cluttered, thanks in advanced for looking and replaying to this (=

6
Feature requests / Re: Get Monitor Refresh Rate.
« on: March 17, 2016, 09:46:26 pm »
@korczurek k thanks for replying (:, So exactly, your game will look better running a frame rate that is double the refresh rate, that being said it also has an effect on the entire game it's self, so lets say perhaps you are creating a game that has no frame limit while this will run and work correctly you are wasting cycles and reducing performance, and in turn burdening the players hardware, with a frame rate that is statically set the frame rate 120 in the games programming to never be changed and always be the same frame limit you fix the problem of wasting cycles and bad performance but now if someone runs this on a computer monitor running at 144H it will seem less smooth than someone a monitor at 60H, now you could in turn make the frame rate higher to accommodate monitors that run higher than 60 by setting the frame rate and 288, this will also work and look good on all monitors, but once again you are wasting cycles and creating bad performance on a computer using a monitor that runs at 60H, and yes there is no easy way at the moment to get the refresh rate through sfml, the only way you can do this would be to use config.h file in sfml to check the platform and do every thing yourself through os specific interfaces like win32 api, thank you in advanced for any and all replies (:

7
Feature requests / Get Monitor Refresh Rate.
« on: March 17, 2016, 08:15:12 pm »
I feel that SFML should provide a way to get the refresh rate of a monitor, this is needed for anybody interested in making games that rely on a rate limited game loop, the reason for needing a way to get a refresh rate is simply because not all monitors run at 60H any more, some run at 120H and 144H to create a smoother experience, with any game your frame rate should always only be double that of the refresh rate, and without a way to get the refresh rate it sort of breaks things since you cant necessarily make a static rate of 60 anymore, thank you in advanced for taking a look at this (:

Pages: [1]