Enabled v-sync in OpenGL and Pong examples (to make them smoother)
This commit is contained in:
parent
f55da8d8bc
commit
c817f882e6
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue