From 73b037b244a9b40ecfa3cf537e74bbaa9038ae6c Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Tue, 31 Jan 2012 19:56:51 +0100 Subject: [PATCH] Updated the comments of Window::SetFramerateLimit --- include/SFML/Window/Window.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp index 573e289f..8126871d 100644 --- a/include/SFML/Window/Window.hpp +++ b/include/SFML/Window/Window.hpp @@ -382,6 +382,11 @@ public : /// If a limit is set, the window will use a small delay after /// each call to Display() to ensure that the current frame /// lasted long enough to match the framerate limit. + /// SFML will try to match the given limit as much as it can, + /// but since it internally uses sf::Sleep, whose precision + /// depends on the underlying OS, the results may be a little + /// unprecise as well (for example, you can get 65 FPS when + /// requesting 60). /// /// \param limit Framerate limit, in frames per seconds (use 0 to disable limit) ///