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

Author Topic: Issue with framerate limits  (Read 650 times)

0 Members and 1 Guest are viewing this topic.

TheArmoredPanda

  • Newbie
  • *
  • Posts: 5
    • View Profile
Issue with framerate limits
« on: March 04, 2023, 10:30:25 pm »
I am, trying to build a visualization of different sorting algorithms using sfml, and sorting algorithms are computationally intense so I am trying to optimize them. I do not have a line of code that limits framerate anywhere, however, when I click off of the sfml window and click on the console the code runs about 7 times as fast. Is there a way to fix this problem and get the code to run faster without me clicking on the console?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Issue with framerate limits
« Reply #1 on: March 04, 2023, 11:01:46 pm »
Maybe your default graphics card driver settings have VSync/GSync or similar enabled.

I don't know your code, but you should already have some limiting factor, otherwise you wouldn't be able to visualize the sorting, as it would be done within milliseconds and take less that a frame.
If you want it to go faster, then you'll just need to adjust that code, that currently slows down the process.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/