SFML community forums
Help => General => Topic started by: user123 on May 08, 2015, 05:12:20 pm
-
I am working on a simple game of mine, but I have run into a weird problem.
Using sleep() I am making sure that the game updates around 60 times a second.
I also set window.frameratelimit to 60.
Currently, I have no FPS counter implemented, but when I run the game, it runs terribly slow, something like 15-30 fps. When I open firefox, which is in NO WAY connected to my game whatsoever, and open youtube (does NOT work on other websites!) , and then I run my game, suddenly the framerate is super smooth.
I am using Visual Studio 2013 Express.
How is this possible?
How can something that is not connected to my game, affect its performance?
Is this a weird graphics card bug?
By the way, I am running my game using Local Windows Debugger button in my VS2013Express.
-
What version of SFML are you using? Can you provide a minimal and compilable example?
-
What version of SFML are you using? Can you provide a minimal and compilable example?
I don't think I can provide a compilable example, it is ridden with custom classes, which would result into erros.
If I were to include those classes too, i'd end up posting the full ~20 pages here, which isn't minimal.
How can I do that?
I am using version 2.2.0.1, I installed it using the NuGet button.(I tried 100's of times the manual way, too complicated)
Edit:
https://gist.github.com/anonymous/0254100bc8406fe6b0b2
Its a part of the int main().
I tried my best, I have no idea what to upload.
-
I have had a similar issue with some older versions of SFML.
If nothing else than my game was open, it locked the frames at around 30, but as soon as I startet Google Chrome it was smooth again. Sometimes I have some weird performance issues with "low intense games", which normally run on every crappy computer.
Must be something with the computer itself, however I never figured out what causes the problem.
-
Related: http://en.sfml-dev.org/forums/index.php?topic=7750
I have never dug deeper, but I have the suspicion that this behavior might be linked to the system timer resolution, which is increased by certain applications or services. Especially Google Chrome was famous for its exaggerated use of high timer resolutions, draining battery life on laptops.
-
We fixed this a long time ago.
I am using version 2.2.0.1
Doesn't exist. Make sure that you read the SFML version, not the version of the NuGet package.
-
Related: http://en.sfml-dev.org/forums/index.php?topic=7750
I have never dug deeper, but I have the suspicion that this behavior might be linked to the system timer resolution, which is increased by certain applications or services. Especially Google Chrome was famous for its exaggerated use of high timer resolutions, draining battery life on laptops.
It may be that. But when I let a friend download it, he can run it fine without running firefox.
-
We fixed this a long time ago.
I am using version 2.2.0.1
Doesn't exist. Make sure that you read the SFML version, not the version of the NuGet package.
How do I find out the real version then?
-
It's written in Config.hpp.
-
It's written in Config.hpp.
#define SFML_VERSION_MAJOR 2
#define SFML_VERSION_MINOR 2
I am guessing I am running an outdated version
-
Well, SFML 2.3 was released just a few days ago.