Hi everyone!
I have come across an issue which I can't seem to fix and need some advice.
The problem is that I am developing my own deferred renderer and I am using SFML as the window framework and I am having rendering issues of anything above 1000fps. I know this is a very high framerate and not realistic at all in anyway but anything above this causes "black frames" or essentially a few empty frames, I have checked everything my side is populated but the only conclusion I can come to is that SFML doesn't wait to swap the buffers(?).
An example setup code I have:
window.clear(sf::Color::Black);
geometryPass();
// Output has been stored to render targets.
lightPass();
// At this point the rendering has been outputted to window buffer, ready to be swapped to the front buffer.
window.display();
The reason for the need for high fps is due to my university dissertation on speed and efficiency on a rendering technique but I need to get the deferred rendering implemented beforehand. My PC is currently running the project at just under 4000fps but again, flickering occurs at anything over 1000fps.
Any ideas and advice will be appreciated.