Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sensei

Pages: [1]
1
General / Joystick and pollEvent
« on: May 12, 2014, 11:58:05 pm »
Just tried out SFML but ran into an annoyance. I have a wireless PS4 controller and even when it is not turned on, I get hiccups in framerate about every 1/4th second and they last ~50 ms. I have narrowed the issue down to the pollEvent after googling and discovering related problems. The weird part is: I'll start up this simple program, turn my controller on, and the program runs smoothly. I'm using Windows 8.1 and SFML 2.1. Card is NVIDIA 570.

Perhaps this a driver issue on my end?
while (window.isOpen())
{
    sf::Event event;
    while (window.pollEvent(event))
    {
        // empty but problem persists
    }
}

Pages: [1]