SFML SetFramerateLimit does not limit frame rate

Compiler: Visual C ++ OS: Windows 7 Enterprise

For some reason, it Window::SetFramerateLimitdoesn't limit the frame rate in the application I'm working on, but it works great for others. The frame rate is limited to 60, but mine jumps around 100-99, and then decreases to 50. This actually causes serious problems. For example, if I create many objects on the screen, I will see a strong performance hit, while others do not report changes.

Any ideas as to why this is happening? If you need more information, I’ll be happy to commit.

Thank.

PS I have good reason to believe that this is not just a case where "their equipment is simply more powerful than yours."

+3
source share
1 answer

Solved by setting vertical sync to true.

+3
source

Source: https://habr.com/ru/post/1739657/


All Articles