diff --git a/examples/opengl/OpenGL.cpp b/examples/opengl/OpenGL.cpp index f86522ee..38451722 100644 --- a/examples/opengl/OpenGL.cpp +++ b/examples/opengl/OpenGL.cpp @@ -15,6 +15,7 @@ int main() { // Create the main window sf::RenderWindow window(sf::VideoMode(800, 600), "SFML OpenGL", sf::Style::Default, sf::ContextSettings(32)); + window.EnableVerticalSync(true); // Create a sprite for the background sf::Texture backgroundTexture; diff --git a/examples/pong/Pong.cpp b/examples/pong/Pong.cpp index a203dea7..3b1b940a 100644 --- a/examples/pong/Pong.cpp +++ b/examples/pong/Pong.cpp @@ -28,6 +28,7 @@ int main() // Create the window of the application sf::RenderWindow window(sf::VideoMode(gameWidth, gameHeight, 32), "SFML Pong"); + window.EnableVerticalSync(true); // Load the sounds used in the game sf::SoundBuffer ballSoundBuffer;