Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FPS bug on Windows #1

Closed
Meoo opened this issue Sep 13, 2013 · 2 comments
Closed

Fix FPS bug on Windows #1

Meoo opened this issue Sep 13, 2013 · 2 comments

Comments

@Meoo
Copy link
Owner

Meoo commented Sep 13, 2013

This problem is known in SFML, and seems to come from the resolution of the sleep function Windows use.

It causes random variations of the FPS count depending on the other running applications (try closing / opening your web browser and check the FPS counter).

Possible solutions :

  • Use custom active sleep (with tinythread yield) for short times
  • Find a way to fix it in SFML

VSync is also affecting the FPS counter...

@Meoo
Copy link
Owner Author

Meoo commented Sep 13, 2013

Log example

FPS : 60.1868
FPS : 60.0885
FPS : 60.0019
-- Closing Firefox
FPS : 35.9161
FPS : 32.1892
FPS : 35.7981
-- Reopening Firefox
FPS : 49.7906
FPS : 49.9937
FPS : 50.0399

@ghost ghost assigned Meoo Sep 13, 2013
@Meoo
Copy link
Owner Author

Meoo commented Oct 12, 2013

Seems to be fixed with SFML/SFML#475

@Meoo Meoo closed this as completed Oct 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant