LaurentGomila/SFML — pull request #210 by speps (2012-04-17 22:22:23+00:00)
Title: Reduce joystick connection polling to once per second

Applied advice from http://en.sfml-dev.org/forums/index.php?topic=6079.0, reduces lag when no joystick is connected a LOT.

However, because it's using "Clock::getElapsedTime" now SetThreadAffinityMask (from getCurrentTime) uses 9% CPU (which is still a lot). Maybe remove the calls and put something in the comments about the behavior of these functions under certain multi cores/processors (from what I read it only concerns AMD processors).