1
Window / Window pollEvents() causing lag when joystick not plugged in.
« on: May 15, 2016, 11:36:46 pm »
I'm having trouble with the event loop, "while(window.pollEvent(event))". When I don't have a joystick plugged in, it lags, and when I plug a joystick in, it starts running smoothly, even when I take it out again. I know this is because of how in the event loop, it is checking to see if the joystick is connected. I saw another thread that said to fix this, you need to get into the CPP file to edit some code. In other words, get into the SFML source code. I am not sure how to do this. If I could figure this out, I could fix the problem. Any ideas? Thanks!