SFML community forums

Help => General => Topic started by: TheArmoredPanda on March 04, 2023, 10:30:25 pm

Title: Issue with framerate limits
Post by: TheArmoredPanda 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?
Title: Re: Issue with framerate limits
Post by: eXpl0it3r 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.